Scott Hanselman

.NET Core 1.0 RC2 - Upgrading from previous versions

May 19, '16 Comments [34] Posted in ASP.NET
Sponsored By

.NET Core at http://dot.net.NET Core RC2 is out, it's open source, and it's on multiple platforms. I'm particularly proud of the cool vanity domain we got for it. http://dot.net. ;) It makes me smile.

Here's the important blog posts to check out:

Head over to http://dot.net and check it out. A great aspect of .NET Core is that everything it does is side-by-side. You can work with it without affecting your existing systems. Be sure also explore the complete .NET Downloads Page for all the manual downloads as well as SHA hashes.

The best way to develop with .NET Core on Windows is to download the Visual Studio official MSI Installer and the latest NuGet Manager extension for Visual Studio. If you don't have Visual Studio already, you can download Visual Studio Community 2015 for free.

We'll have documentation and insights on how to moving from ASP.NET 4.x over to ASP.NET Core 1.0 soon, but for now I've collected these resources for folks who are upgrading from previous versions of .NET Core and ASP.NET Core (the framework formerly new as ASP.NET 5).

Enjoy!


Sponsor: Build servers are great at compiling code and running tests, but not so great at deployment. When you find yourself knee-deep in custom scripts trying to make your build server do something it wasn't meant to, give Octopus Deploy a try.

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb
Thursday, 19 May 2016 19:58:37 UTC
Your "Docker and .NET Core RC2" href is borked... I know because I wanted to check that out :/
will
Thursday, 19 May 2016 19:59:46 UTC
Spelling the domain name sounds something like "dot dot net".
Thursday, 19 May 2016 20:26:55 UTC

Spelling the domain name sounds something like "dot dot net".

Indeed, it's too bad you couldn't have gotten dotnet.net. At least then it would have sounded like New York, NY (the city so nice they named it twice)...
Herb
Friday, 20 May 2016 01:25:27 UTC
Would be nice if there were documentation on how to remove the dnx files from my system since it does not have an installer/uninstaller.
Donald Adams
Friday, 20 May 2016 03:23:55 UTC
Hi,

I just spent the night playing with RC2 and trying to get a emptywebsite working in docker with vs code and the command line. It was fun and it feels a little like ruby. Using gulp and yo made me smile. I loved that the template came with a Dockerfile by default.

While trying out Docker, I stumbled across an issue where i couldn't start the webserver on http://0.0.0.0:5000 (even though i specified server.urls) instead it was using localhost (which docker doesn't like). I understand that the generators for YO probably haven't been upgraded so i tried to figure this out myself. (My hacky solution (at 2am - i had to figure it out before i went to sleep) was to .UseUrls() in the WebHostBuilder)

The release notes mention that this is infact a breaking change between rc1 and rc2, but doesnt actually explain how to resolve it - ('hosting.json will no longer be read by default.' but nothing to say how to get it read)

It was quite hard to find (mainly because I hadnt turned on Intellisense in VSCode) but the official documentation was a mix of different version and 1/2 complete. (some documents have had a coming soon tag for over 4 months) The best Community blog posts referenced the old releases.

I guess this is still an RC, and I love what is going on with ASP.NET Core. I look forward to RTM when all the documentation is released along side it.

Regards,

Brent
Brent
Friday, 20 May 2016 07:00:38 UTC
Do I have to migrate my RC1 web app, hosted on Azure App Services, to RC2 or will it continue to function as usual?
Robin Nilsson
Friday, 20 May 2016 07:15:48 UTC
After checking out a number of the articles on your website, I truly apprecikate your wayy of writing a blog.

I book marked it tto my bookmark site list and
will be checking back in the near future. Please chec ouut mmy website
too annd let me know how you feel.
Friday, 20 May 2016 08:31:02 UTC
Donald Adams,
Remove dnx is a simple as delete the file and shortcut to it.
All you need is remove .dnx folder from you home user directory (cause it's installing per user) and remove it from your "PATH" environment variables (must be users PATH)
Ruslan Khasanbaev
Friday, 20 May 2016 09:23:30 UTC
The migration guides seem to cover the command-line tools only - is there a migration path for those of us with RC1 projects in Visual Studio? Or is creating a new project based on an RC2 template and manually moving everything over the only way to do it?
oddsignals
Friday, 20 May 2016 11:00:42 UTC
I've been looking forward to this.
Small typo "(the framework formerly new as ASP.NET 5)."
should be "(the framework formerly known as ASP.NET 5)."
Rupert Greenwood
Friday, 20 May 2016 12:16:25 UTC
LoL, sorry Scott, but the domain name wasn't a good choice! :D I agree with Uwe, it's so weird to say out loud and even to read it xD

A good one, in my opinion, would've been core.net! :)
MrStein
Friday, 20 May 2016 14:02:03 UTC
Does .Net Core depend or use dnx? If yes, will the final no longer be tied to dnx?

How does Microsoft recommend hosting .Net Core web apps either today or in the future? It kind of seems like things are moving towards containers (i.e. Docker) instead of your traditional IIS.
Frank
Friday, 20 May 2016 15:36:04 UTC
dot.net is great

For migrating from 4.6.1, I found this:

https://blogs.msdn.microsoft.com/dotnet/2016/02/10/porting-to-net-core/

Curious to learn if the API Port OSS tool is ready for RC2.
Friday, 20 May 2016 21:33:00 UTC
I have a server that is not connected to internet. I created offline package using /layout option but get an error 0x80070001 when I run the package. How can I create a bug report?
Lei
Saturday, 21 May 2016 20:06:51 UTC
Reading posts I wonder why people are using RC1 OR RC2 to develop production stuff with it.

RC2 is just not ready and RC1 was of course not.

MS vision is terrible at times but quality on products is pretty good.

People please wait for the final release or your production stuff. It will safe you're hair from turning gray.

Edward
Sunday, 22 May 2016 10:53:13 UTC
Sunday, 22 May 2016 12:49:33 UTC
Hey I know this is offf topic but I was
wondering if you knew of any widgets I could add to my
blog that aujtomatically tweet my newest teitter updates.
I've been looking for a plug-in like this for quite
some time and was hoping maybe you would have soke experience with something like this.
Please let me know if you run into anything. I truly enjoy
reeading your blog annd I look forward to your new updates.
Monday, 23 May 2016 01:41:28 UTC
Ruslan Khasanbaev,

Thank you. I removed .dnx from user path and removed the folder.

How about: C:\Program Files\Microsoft DNX and it's inclusion in the system path variable.

Can I remove it too?
Donald Adams
Monday, 23 May 2016 10:18:59 UTC
Donald Adams,
hmm... I didn't notice this folder (in linux dnvm also located in /hove/<user>/.dnx), yes I believe you can remove it too and clear the system Path envVar too (just to save more free space in PATH var for future, cause Windows still have only 2048 chars for any paths).
Ruslan Khasanbaev
Monday, 23 May 2016 19:25:52 UTC
If you were <a "http://www.hanselman.com/blog/ExploringTheNewNETDotnetCommandLineInterfaceCLI.aspx">Exploring the new .NET "dotnet" Command Line Interface (CLI)</a> make sure you uninstall any previous version of it before making your first experiments with .NET Core 1.0 RC2.

It took me hours to find out why Visual Studio is complaining about the project being configured for soemthing ...rc1 and failing to build the freshly created solution afterwards.

Perhaps this might be worth mentioning next to "Remove all previous versions of .NET Core from your system by using Add/Remove programs." at https://www.microsoft.com/net/core#windows.

Like "Also make sure that you remove all previous versions of the .NET dotnet CLI".
Brar Piening
Monday, 23 May 2016 19:26:45 UTC
If you were Exploring the new .NET "dotnet" Command Line Interface (CLI) make sure you uninstall any previous version of it before making your first experiments with .NET Core 1.0 RC2.

It took me hours to find out why Visual Studio is complaining about the project being configured for soemthing ...rc1 and failing to build the freshly created solution afterwards.

Perhaps this might be worth mentioning next to "Remove all previous versions of .NET Core from your system by using Add/Remove programs." at https://www.microsoft.com/net/core#windows.

Like "Also make sure that you remove all previous versions of the .NET dotnet CLI".
Brar Piening
Monday, 23 May 2016 21:34:59 UTC
So confusing... 3 official Microsoft blogs, and all inconsistent in how they describe the products. Add the multitude of GitHub repositories being abused to function as 'homepages' for different parts of the stack, and it's incredible anyone would understand what it is they're installing.

When are you guy going to get your act together? Can you please do a stand up on this fubar?
Mike
Tuesday, 24 May 2016 09:25:19 UTC
There is no guidance on migration class libraries of asp.net web application. Has any one has some guidance for that.
Wednesday, 25 May 2016 08:39:54 UTC
I once had an email address with dot.net, turns out it was originally private owned - luckily the owner didn't grab all my new emails after the dns changed. At least I don't think they did!
Ross
Wednesday, 25 May 2016 13:06:32 UTC
.NET Core RC2 is update is good news. The best thing that I like is that it can work side-by-side without affecting your existing systems. This was something most users will feel relived to know. Thanks for the update.
Tuesday, 31 May 2016 13:21:41 UTC
http://rathns.ie
http://www.radyomburada.com
http://www.densandenizcilik.com.tr
http://www.dandini.info
http://grimesdesigns.ie
http://d1967855.u172.host.ie
http://2000radyo.com
http://realestateinturkey.sale
http://www.ojeznigeria.com
http://aksabolt.com
http://www.radiationsafety.ie
http://drumming.drumpage.at
http://avrasyagida.com.tr
http://www.holidayswithaerlingus.com
http://d414672.u95.host.ie
Wednesday, 01 June 2016 16:15:33 UTC
We are a bunch of volunteers and opening a new scheme in our
community. Your website provided us with valuable information to work on. You have performed a formidable activity and our entire community will likely be thankful to
you.
Tuesday, 07 June 2016 12:32:57 UTC
.net rc2 is very useful for me because it is open source and suited for multiple platform
Monday, 13 June 2016 10:34:42 UTC
http://www.d1702235.domaincentral.com.au
http://hold.net
http://retrocafe.org
http://d1663361.domaincentral.com.au
new.timbriggs-gettingitrightfirsttime.com
http://d1634650.pem.bottle.com.au
http://d1571087.domaincentral.com.au
http://www.d1667121.domaincentral.com.au
http://d1667189.domaincentral.com.au
http://d1654745-1.domaincentral.com.au
http://www.pozitifbasim.com
http://www.d1656688.domaincentral.com.au
http://d1518157.domaincentral.com.au
http://www.d1706164.domaincentral.com.au
http://d1709716.domaincentral.com.au
Monday, 13 June 2016 10:34:43 UTC
http://d1549538.domaincentral.com.au
lindajones-artist.co.uk
http://papazinbagi.org
www.freewinforever.com
http://www.d1593391.domaincentral.com.au
http://www.d1660921.domaincentral.com.au
http://aksyapinet.com
http://d1719688.domaincentral.com.au
http://www.t-online.de
getbeyonder.com
http://www.sydneylimousines.net.au
http://erbuls.net
www.havaliving.com
http://www.d1589395.pem.bottle.com.au
worldxpress.co.uk
Tuesday, 14 June 2016 03:28:48 UTC
Amazing info and i really like your work! thanks a lot or sharing! Free Android APK file download safe link apkdom best safe APK downloader free download mirror xapk obb server CoC private link. Love fun ideas lovematchfun join now. The Best Prank Apps, jokes and shocking Games for Android. prankyapps electric screen joke, Love Match test Prank, transparent screen android app, etc. Free Android app APK download softlot app games APK downloader. Gift Ideas giftspilot gifts for her and kids.
So, yes, ads are coming to Wholesale Jerseys 2016 uniforms. Maybe not next year, but soon, and for the rest of our viewing lives. At least we can take heart in the fact that we won't be watching, say, the Citibank Giants play the Coca-Cola Falcons. Yet.
One key, of course, is matching the right sponsor with the right team. The NFL will have its say in advertiser selection Kansas City Chiefs Jersey , to avoid some Texas offramp strip club sponsoring the Cowboys or some Bay-area pawn shop hooking up with the Raiders. You'll be looking at multi-year agreements; this won't be like NASCAR, where advertisers can switch from week to week and certain unfortunate cars might run without ads at all Pittsburgh Steelers Jersey . Dozens of companies are willing to spend millions for 30 seconds of Super Bowl ad time; you think there won't be a line out the door to buy three hours' worth?
dsfd
Friday, 17 June 2016 06:56:04 UTC
HI

Thanks a lot for sharing these links dude !! We get to know all the best Software company in India thru ur amazing blog.Cheers !!

Thanks Regards!
Erectorslab
Friday, 17 June 2016 19:00:40 UTC
Here's the funny thing...

When classic asp first came out in 1996, developers in the Microsoft ecosystem were ecstatic. It allowed Microsoft developers to more easily develop web applications than the existing methods (i.e. ISAPI extensions or CGI applications)

When ASP.Net first came out in 2002, Microsoft developers were excited to get a new set of tools that got us away from the spaghetti-code that complicated web applications had become. It also introduced a robust framework that allowed us to focus on developing our application rather than the plumbing underneath.

In 2008, I was at PDC in LA, and attended several seminars on the new framework Microsoft was working on called MVC. I didn't know much about it at the time, but it was Microsoft's newest framework, and they were pushing it hard. With my past experience, I was very interested in finding out more about it. A funny thing happened, though. I was underwhelmed. It didn't give me any new capabilities (other than maybe developing simple CRUD applications). Sure, it allowed for "separation of concerns", but a good developer can do this in most languages and a bad developer can create spaghetti in almost any language.

During this same time, Microsoft also started the ongoing process of killing VB.Net without actually discontinuing it. I read the writing on the wall with that one and made the migration to C#. Similar to MVC, however, there was no productivity gained from the move (even after the learning curve).

Fast forward to 2016. Microsoft is creating their first major directional change in 8 years. It's hard to tell what the advantages are with all the hype, but it seems to boil down to:


  • Open Source (who cares?)

  • Can be run on multiple operating systems (yawn...)

  • Less functionality on initial release (wtf?)



What they will be killing off is:


  • Web Forms

  • VB.Net

  • Half of the .Net Framework


Now before the trolls come on and accuse me of being a Luddite, I have traditionally been an early adopter of new technologies. However, this time, I'm going to take a pass. I have a feeling ASP.Net MVC Core Version 1.0 (or whatever the final name happens to be) is going to be a dead branch on Microsoft's technology tree within 3-5 years. The problems it is designed to solve do not seem remotely worth the headaches it is going to cause.

You can have two of the three: Open Source, Extensive Functionality, or "It Just Works". In this case, Microsoft seems to have decided to just pick one (and the least important of the three). Until Microsoft kicks the open source zealots out of the temple, they won't be able to write quality software that solves actual problems. Hopefully, this soon-to-be fiasco does the trick.

Based upon the icy reception and lack of enthusiasm from the developer community, it just might.
Paul Thiel
Friday, 15 July 2016 05:20:56 UTC
It's really very nice update on Asp.net core. Yes you are write it is the important blog post. I read this and got idea about the great aspect of .NET Core. If you want to get more knowledge about ASP.NET you can visit myasp.net.
smithcole
Comments are closed.

Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.