Skip to content

Commit a65b25f

Browse files
authored
Merge pull request #18046 from dotnet/master
Update live with master
2 parents 56861af + f0bbf06 commit a65b25f

5 files changed

Lines changed: 400 additions & 19 deletions

File tree

aspnetcore/fundamentals/app-state.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ To enable the session middleware, `Startup` must contain:
8989

9090
The following code shows how to set up the in-memory session provider with a default in-memory implementation of `IDistributedCache`:
9191

92-
[!code-csharp[](app-state/samples/3.x/SessionSample/Startup4.cs?name=snippet1&highlight=12-19,39)]
92+
[!code-csharp[](app-state/samples/3.x/SessionSample/Startup4.cs?name=snippet1&highlight=12-19,45)]
9393

9494
The preceding code sets a short timeout to simplify testing.
9595

aspnetcore/fundamentals/app-state/samples/3.x/SessionSample/Startup4.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,10 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
4444
app.UseExceptionHandler("/Home/Error");
4545
app.UseHsts();
4646
}
47+
4748
app.UseHttpsRedirection();
4849
app.UseStaticFiles();
4950

50-
app.UseHttpContextItemsMiddleware();
51-
5251
app.UseRouting();
5352

5453
app.UseAuthentication();

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)