Skip to content

Commit 497169d

Browse files
authored
Update the ASP.NET Core 3.1-to-5.0 migration guide for Preview 3 (#18037)
1 parent 9bb5b6c commit 497169d

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

aspnetcore/migration/31-to-50.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author: scottaddie
44
description: Learn how to migrate an ASP.NET Core 3.1 project to ASP.NET Core 5.0.
55
ms.author: scaddie
66
ms.custom: mvc
7-
ms.date: 04/02/2020
7+
ms.date: 04/28/2020
88
uid: migration/31-to-50
99
---
1010
# Migrate from ASP.NET Core 3.1 to 5.0
@@ -40,21 +40,21 @@ If you rely upon a [global.json](/dotnet/core/tools/global-json) file to target
4040
{
4141
"sdk": {
4242
- "version": "3.1.200"
43-
+ "version": "5.0.100-preview.2.20176.6"
43+
+ "version": "5.0.100-preview.3.20216.6"
4444
}
4545
}
4646
```
4747

4848
## Update the target framework
4949

50-
In the project file, update the [Target Framework Moniker (TFM)](/dotnet/standard/frameworks) to `netcoreapp5.0`:
50+
In the project file, update the [Target Framework Moniker (TFM)](/dotnet/standard/frameworks) to `net5.0`:
5151

5252
```diff
5353
<Project Sdk="Microsoft.NET.Sdk.Web">
5454

5555
<PropertyGroup>
5656
- <TargetFramework>netcoreapp3.1</TargetFramework>
57-
+ <TargetFramework>netcoreapp5.0</TargetFramework>
57+
+ <TargetFramework>net5.0</TargetFramework>
5858
</PropertyGroup>
5959

6060
</Project>
@@ -68,14 +68,14 @@ In the project file, update each `Microsoft.AspNetCore.*` and `Microsoft.Extensi
6868
<ItemGroup>
6969
- <PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="3.1.2" />
7070
- <PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="3.1.2" />
71-
+ <PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="5.0.0-preview.2.20167.3" />
72-
+ <PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="5.0.0-preview.2.20160.3" />
71+
+ <PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="5.0.0-preview.3.20215.14" />
72+
+ <PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="5.0.0-preview.3.20215.2" />
7373
</ItemGroup>
7474
```
7575

7676
## Update Docker images
7777

78-
For apps using Docker, use a base image that includes ASP.NET Core 5.0. For example:
78+
For apps using Docker, use a base image that includes the ASP.NET Core 5.0 runtime. For example:
7979

8080
```bash
8181
docker pull mcr.microsoft.com/dotnet/core/aspnet:5.0

0 commit comments

Comments
 (0)