Background
- Starting with beta version 6 ( see previous notes )
- Install Web Tools 2015 (Beta7)
- Upgrade to beta7:
dnvm upgrade - Install x64 if you want:
dnvm install 1.0.0-beta7 -arch x64 -r clr - Update alias:
dnvm alias default 1.0.0-beta7 x64 - Set it as constant by default
dnvm use default -p
Beta 7 changes
Not all changes will apply to your project ...
- Update
global.json from beta6 to beta7 - Find the project.json files for
beta6" and replace with beta7" - In project.json, replace
Microsoft.Framework.Runtime.Abstractions with Microsoft.Dnx.Runtime.Abstractions - In project.json, replace
Kestrel with Microsoft.AspNet.Server.Kestrel - Replace
using Microsoft.Framework.Runtime; on using Microsoft.Dnx.Runtime; - Replace
configuration.GetConfigurationSection with configuration.GetSection - Replace
configuration.Get("MyConfigKey") with configuration["MyConfigKey"] - In Startup.cs, replace
services.AddMvc().Configure<MvcOptions>(options => with services.AddMvc(options =>
Multiple assemblies with equivalent identification 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.* Links to a section on structure; I found that removing them completely worked as well.
Tagbuilders
Now you cannot use TagBuilder.ToString() to get the HTML, but instead you must use the IHtmlContent that it implements. See TagBuilder InnerHtml in ASP.NET 5 MVC 6
Entity Framework
- New migration syntax:
dnx ef migrations add MyMigration and dnx ef database update
Other
fiat
source share