.NET Core 1.0 RC2 - Upgrading from previous versions
.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:
- Announcing .NET Core RC2 and .NET Core SDK Preview 1
- Announcing ASP.NET Core RC2
- Announcing Entity Framework Core RC2
- Docker and .NET Core RC2
- Visual Studio Tools for Docker
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).
- Migrating from DNX to .NET Core
- Migrating from ASP.NET 5 RC1 to ASP.NET Core 1.0 RC2
- Migrating your Entity Framework Code from RC1 to RC2
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.
About Newsletter
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)...
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
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)
Small typo "(the framework formerly new as ASP.NET 5)."
should be "(the framework formerly known as ASP.NET 5)."
A good one, in my opinion, would've been core.net! :)
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.
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.
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.
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?
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).
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".
When are you guy going to get your act together? Can you please do a stand up on this fubar?
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?
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
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.
Comments are closed.