2.7 KiB
title | author | ms.author | manager | ms.date | ms.topic | ms.assetid | ms.prod | uid |
---|---|---|---|---|---|---|---|---|
Migrating from ASP.NET Core RC2 to ASP.NET Core 1.0 | rick-anderson | riande | wpickett | 10/14/2016 | article | b672bd6e-7ecf-4504-9ecf-58ae9ec0153f | aspnet-core | migration/rc2-to-rtm |
Migrating from ASP.NET Core RC2 to ASP.NET Core 1.0
Overview
This migration guide covers migrating an ASP.NET Core RC2 application to ASP.NET Core 1.0.
There weren't many significant changes to ASP.NET Core between the RC2 and 1.0 releases. For a complete list of changes, see the ASP.NET Core 1.0 announcements.
Install the new tools from https://dot.net/core and follow the instructions.
Update the global.json to
{
"projects": [ "src", "test" ],
"sdk": {
"version": "1.0.0-preview2-003121"
}
}
Tools
For the tools we ship, you no longer need to use imports
in project.json. For example:
{
"tools": {
"Microsoft.AspNetCore.Server.IISIntegration.Tools": {
"version": "1.0.0-preview1-final",
"imports": "portable-net45+win8+dnxcore50"
}
}
}
Becomes:
{
"tools": {
"Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.0.0-preview2-final"
}
}
Hosting
The UseServer
is no longer available for IWebHostBuilder
. You must now use UseKestrel
or UseWebListener
.
ASP.NET MVC Core
The HtmlEncodedString
class has been replaced by HtmlString
(contained in the Microsoft.AspNetCore.Html.Abstractions
package).
Security
The AuthorizationHandler<TRequirement>
class now only contains an asynchronous interface.