You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aspnetcore/migration/20_21.md
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Migrate from ASP.NET Core 2.0 to 2.1
3
3
author: rick-anderson
4
4
description: This article covers the basics of migrating an ASP.NET Core 2.0 app to 2.1.
5
5
ms.author: riande
6
-
ms.date: 08/14/2018
6
+
ms.date: 09/26/2018
7
7
uid: migration/20_21
8
8
---
9
9
# Migrate from ASP.NET Core 2.0 to 2.1
@@ -31,9 +31,9 @@ This article provides an overview on migration to ASP.NET Core 2.1. It doesn't c
31
31
Update the project file:
32
32
33
33
* Change the target framework to .NET Core 2.1 by updating the project file to `<TargetFramework>netcoreapp2.1</TargetFramework>`.
34
-
* Replace the package reference for `Microsoft.AspNetCore.All` with a package reference for `Microsoft.AspNetCore.App`. You may need to add dependencies that were removed from `Microsoft.AspNetCore.All`. For more information, see <xref:fundamentals/metapackage#migrate> and <xref:fundamentals/metapackage-app>. For apps that target the .NET Framework:
35
-
* Add individual package references instead of a metapackage reference.
36
-
* Update each package reference to 2.1.
34
+
* Replace the package reference for `Microsoft.AspNetCore.All` with a package reference for `Microsoft.AspNetCore.App`. You may need to add dependencies that were removed from `Microsoft.AspNetCore.All`. For more information, see <xref:fundamentals/metapackage#migrate> and <xref:fundamentals/metapackage-app>.
35
+
* Remove the "Version" attribute on the package reference to `Microsoft.AspNetCore.App`. Projects which use `<Project Sdk="Microsoft.NET.Sdk.Web">` do not need to set the version. The version will be implied by the target framework and selected to best match the way ASP.NET Core 2.1 works. (See below for more information.)
36
+
* For apps that target the .NET Framework, update each package reference to 2.1.
37
37
* Remove references to **<DotNetCliToolReference>** elements for the following packages. These tools are bundled by default in the .NET Core CLI and don't need to be installed separately.
The version specified by the package reference is the *minimum required* version. For example, a project referencing the 2.1.1 versions of these packages won't run on a machine with only the 2.1.0 runtime installed.
61
61
62
-
Known issues for projects targeting the shared runtime:
62
+
Known issues for projects targeting the shared framework:
63
63
64
-
*Using `Microsoft.AspNetCore.App` 2.1.0 with Entity Framework Core 2.1.1 causes NuGet restore failures due to package conflicts. The recommended solution is to upgrade `Microsoft.AspNetCore.App`to 2.1.1. For more information, see [Packages that share dependencies with Microsoft.AspNetCore.App cannot reference patch versions](https://github.com/aspnet/Universe/issues/1180).
64
+
*The .NET Core 2.1.300 SDK (first included in Visual Studio 15.6) set the implicit version of `Microsoft.AspNetCore.App`to 2.1.0 which caused conflicts with Entity Framework Core 2.1.1. The recommended solution is to upgrade the .NET Core SDK to 2.1.301 or later. For more information, see [Packages that share dependencies with Microsoft.AspNetCore.App cannot reference patch versions](https://github.com/aspnet/Universe/issues/1180).
65
65
* All projects that must use `Microsoft.AspNetCore.All` or `Microsoft.AspNetCore.App` should add a package reference for the package in the project file, even if they contain a project reference to another project using `Microsoft.AspNetCore.All` or `Microsoft.AspNetCore.App`.
66
66
67
67
Example:
68
68
69
69
*`MyApp` has a package reference to `Microsoft.AspNetCore.App`.
70
70
*`MyApp.Tests` has a project reference to `MyApp.csproj`.
71
-
71
+
72
72
Add a package reference for `Microsoft.AspNetCore.App` to `MyApp.Tests`. For more information, see [Integration testing is hard to set up and may break on shared framework servicing](https://github.com/aspnet/Home/issues/3156).
0 commit comments