I just updated the Visual Studio 2015 ASP.MVC web application from beta to beta 5 and am now launching it. Below are some additions to the instructions that you have followed.
Run "dnvm upgrade"
After that, this is what dnvm list will output.
Active Version Runtime Architecture Location Alias ------ ------- ------- ------------ -------- ----- 1.0.0-beta4 clr x64 C:\Users\BigFont\.dnx\runtimes 1.0.0-beta4 clr x86 C:\Users\BigFont\.dnx\runtimes 1.0.0-beta4 coreclr x64 C:\Users\BigFont\.dnx\runtimes 1.0.0-beta4 coreclr x86 C:\Users\BigFont\.dnx\runtimes * 1.0.0-beta5 clr x86 C:\Users\BigFont\.dnx\runtimes default 1.0.0-beta5-12087 clr x86 C:\Users\BigFont\.dnx\runtimes
In your application, update your global.json to point to beta5
In global.json specify the specific beta5 build:
{ "projects": [ "src", "test" ], "sdk": { "version": "1.0.0-beta5" } }
Also your project.json points to beta5 package versions
In project.json beta5 link. This will force dnu to restore the latest build ( well, curious - David Fole describes the nuances of the "floating version" here. )
"dependencies": { "Microsoft.AspNet.Server.IIS": "1.0.0-beta5", "Microsoft.AspNet.Server.WebListener": "1.0.0-beta5", "Microsoft.AspNet.StaticFiles": "1.0.0-beta5" },
... port your code to beta5 as needed
Once you stop accepting errors about missing base objects, such as System.Void , you can get errors about changes being made. This may require some research to resolve, depending on what your code base is using. For example, if you use the ASP.NET identifier, you need to change this:
SignInManager.PasswordSignInAsync( model.Email, model.Password, model.RememberMe, shouldLockout: false);
:
SignInManager.PasswordSignInAsync( model.Email, model.Password, model.RememberMe, lockoutOnFailure: false);
Final Note: Visual Studio
Closing and reopening the solution in Visual Studio can solve recovery / build problems after updating the global.json and package.json files.
See also: ASP.NET 5 Web Project (vNext): Updating Conflict Conflict from Beta to Beta