Reputation: 15981
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...
Upvotes: 4
Views: 1404
Reputation: 61
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.
Upvotes: 0
Reputation: 15981
The upgrade went fine. Here is the cheatsheet
Prerequisites
dnvm upgrade
dnvm install 1.0.0-beta6 -arch x64 -r clr
dnvm alias default 1.0.0-beta6 x64
dnvm use default -p
Beta 6 Changes
(Not all changes will be applicable to your project)
global.json
from beta5
to beta6
beta5"
and replace with beta6"
Microsoft.AspNet.Mvc.Core
app.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
Upvotes: 7