Upgrading your ASP.NET 5 application from beta8 to RC1

There aren't that many API changes, the focus on RC1 was to stabilize the code base.

 

Installation of RC1:

1. First download and install the RC1 upgrade for Visual Studio:

https://docs.asp.net/en/latest/getting-started/installing-on-windows.html

 

2. Then install the latest dnx (rc1-final) from cmd / terminal:

 

 

 

global.json

Change the string "version": "1.0.0-beta8" to "version": "1.0.0-rc1-final"

 

 

project.json

  • Replace all beta8 with rc1-final
  • EntityFramework.SqlServer got renamed to EntityFramework.MicrosoftSqlServer
  • EntityFramework.Sqlite is now case sensitive
  • Microsoft.Framework.* got renamed to Microsoft.Extensions.*

Example:

  

Caution: SignalR rc1-final needs an additional NuGet feed (aspnetmaster v3). Example NuGet.config:

 

Besides that there might be an update for SignalR soon:

https://gist.github.com/moozzyk/a7e9567752c524df2685

 
A new option

If we look at the dnx compilation source codehere, we can see that it expect us to check the compilation option 'emitEntryPoint' for console applications. False for libraries.

 

 

Views

Change @using Microsoft.Framework.OptionsModel to @using Microsoft.Extensions.OptionsModel

 

 

Startup.cs

Add the static void Main method to your Startup.cs.

 

The application base path is automaticly called if no base path is specified. Remove  .SetBasePath(appEnv.ApplicationBasePath) if possible:

 

 

nginx

There is a bug in RC1 that will get fixed in RC2 or in a RC1-1 update. Add this header to your *.conf file:

 

 

Additional Ressources:

Github Announcements

MusicStore Sample

 

 

 



Mahmut Jomaa is a Software Engineer from Germany.

Currently he attends university to gain more knowledge in Computer Science.


Security code Refresh