Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MVC 6 - RC1 to RC2 changes

I have an application that works fine on RC1 of ASP.NET MVC6. I heard that RC2 is going to use CLI instead of DNX command line tools.

Can somebody please tell me:

  1. Will Project.json undergo any change (apart from package versions, of course)? Currently there is entry dnx451 and dnxcore50 under frameworks section. Will they change post RC2?

  2. I know EF7 migrations commands are going to change but are there any code level changes?

  3. Any other major code level change?

I can't use RC2 packages currently since this project is already in development. But trying to get a feel of what all I need to change when RC2 becomes available.

like image 504
Web Dev Avatar asked Jan 19 '16 09:01

Web Dev


3 Answers

According to the roadmap, there shouldn't be any major changes:

RC1 - Stabilization

The focus for RC1 will be on polishing existing features, responding to customer feedback and improving performance and reliability. The goal is for RC1 to be a stable and production ready release.

RC2 - Move to .NET CLI

For RC2 we will move ASP.NET 5 to be based on the new cross-platform .NET Core command line toolchain.

There is more details on the changes needed to migrate between the two on Shawn Wildermuth's blog and David Pine's blog.

It mainly seems to be renamespacing from Microsoft.AspNet.* dependencies to Microsoft.AspNetCore.* ones

like image 143
NikolaiDante Avatar answered Nov 16 '22 01:11

NikolaiDante


I believe there would be many code braking changes as ASP.NET 5 is already renamed to ASP.NET Core. So all the nuget packages version name is going to change and one will have to manually work and fix this. As there is no direct migration for now.

Coming back to your question

  • Till RC 1, every ASP.NET Core project is a DNX project but that’s no more valid with RC2 release.
  • In RC2, DNX is gone. It will be replaced via dotnet cli tool.
  • Incremental compilation is back.
  • The ASP.NET team has also moved away from dnx so in project.json dnx would be replaced by net.

Take a look at this - What’s new in ASP.NET Core 1.0 RC2

And earlier this week, .NET team has released a sample RC2 project on github. It was also discussed in last ASP.NET community stand up last week. You can also read A First look at ASP.NET Core 1.0 RC2

like image 31
VirendraJ Avatar answered Nov 16 '22 01:11

VirendraJ


ASP.NET Core RC2 availability has been announced recently.

Highlight changes from the announce:

  • ASP.NET 5 rebranded to ASP.NET Core
  • DNVM, DNX and DNU are replaced with CLI
  • ASP.NET Core is now a console app rather than just a class library with a Startup class.
  • IIS gets a module for hosting ASP.NET Core apps.

Resources on migrating from RC1 to RC2:

Additional resources:

  • Full list of changes in RC2
like image 42
Deilan Avatar answered Nov 16 '22 01:11

Deilan