What is the cheatsheet for upgrading from Beta 6 to Beta 7 for ASP.NET 5 vNext?
Prerequisites
dnvm upgrade
dnvm install 1.0.0-beta7 -arch x64 -r clr
dnvm alias default 1.0.0-beta7 x64
dnvm use default -p
Beta 7 Changes
Not all changes will be applicable to your project...
global.json
from beta6
to beta7
beta6"
and replace with beta7"
Microsoft.Framework.Runtime.Abstractions
with Microsoft.Dnx.Runtime.Abstractions
Kestrel
with Microsoft.AspNet.Server.Kestrel
using Microsoft.Framework.Runtime;
with using Microsoft.Dnx.Runtime;
configuration.GetConfigurationSection
with configuration.GetSection
configuration.Get("MyConfigKey")
with configuration["MyConfigKey"]
services.AddMvc().Configure<MvcOptions>(options =>
with services.AddMvc(options =>
Multiple assemblies with equivalent identity error
My unit test projects had this error:
Multiple assemblies with equivalent identity have been imported: '<in-memory assembly>' and '<in-memory assembly>'
This blog suggested moving System.*
references down to framework specific section, I found removing them entirely also worked.
TagBuilders
One can no longer use TagBuilder.ToString()
to get HTML but instead must make use of the IHtmlContent
that it implements. See TagBuilder InnerHtml in ASP.NET 5 MVC 6
Entity Framework
dnx ef migrations add MyMigration
and dnx ef database update
Other
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With