Upgrading from ASP.NET v5 Beta4 to Beta5 was a little bit painful, how hard is the upgrade to Beta6?
A cheatsheet like the beta4-beta5 answers would be handy...
Upgrading from ASP.NET v5 Beta4 to Beta5 was a little bit painful, how hard is the upgrade to Beta6?
A cheatsheet like the beta4-beta5 answers would be handy...
The upgrade went fine. Here is the cheatsheet
Prerequisites
dnvm upgradednvm install 1.0.0-beta6 -arch x64 -r clrdnvm alias default 1.0.0-beta6 x64dnvm use default -pBeta 6 Changes
(Not all changes will be applicable to your project)
global.json from beta5 to beta6beta5" and replace with beta6"Microsoft.AspNet.Mvc.Coreapp.UseErrorPage(ErrorPageOptions.ShowAll); to app.UseErrorPage();Context.Authentication.SignIn(...) to SignInAsync(...)app.UseSession(c=> c.IdleTimeOut = 30) to app.UseSession()"Autofac.Framework.DependencyInjection": "4.0.0-beta5-90" to "Autofac.Framework.DependencyInjection": "4.0.0-beta6-150"Deployment
dnu publish scripts - see this questionDone
Other fixes might be found on the ASP.NET announcements repo
Update the Answer above answer
You are using EF and getting following error,
type or namespace name 'Migrations' does not exist in the namespace 'Microsoft.Data.Entity.Relational'
then please remove following namespace
using Microsoft.Data.Entity.Relational.Migrations.Infrastructure
and add following namespace
using Microsoft.Data.Entity.Migrations.Infrastructure
Also you have to rewrite few properties like from following property remove the .GenerateValueOnAdd() function.
Some of the property has .StoreGeneratedPattern(StoreGeneratedPattern.Identity) function replace with .UseSqlServerIdentityColumn() function.
b.Property<string>("Id")
.GenerateValueOnAdd()
.Annotation("OriginalValueIndex", 0);
You have to do above things in few files.