diff --git a/aspnetcore/migration/31-to-50.md b/aspnetcore/migration/31-to-50.md index 6bc0a5b3ad..33ff839e47 100644 --- a/aspnetcore/migration/31-to-50.md +++ b/aspnetcore/migration/31-to-50.md @@ -199,6 +199,38 @@ To resolve the error: 1. In the Azure portal, access the [app's manifest](/azure/active-directory/develop/reference-app-manifest). 1. Set the [`allowPublicClient`](/azure/active-directory/develop/reference-app-manifest#allowpublicclient-attribute) attribute to `null` or `true`. +## Update Razor class libraries (RCLs) + +Migrate Razor class libraries (RCLs) to take advantage of new APIs or features that are introduced as part of ASP.NET Core 5.0. + +To update a RCL that targets components: + +1. Update the following properties in the project file: + + ```diff + + + + - netstandard2.0 + - 3.0 + + net5.0 + + ``` + +1. Update other packages to their latest versions. The latest versions can be found at [NuGet.org](https://www.nuget.org). + +To update an RCL targeting MVC, update the following properties in the project file: + +```diff + + + +- netcoreapp3.1 ++ net5.0 + true + +``` + ## Update package references In the project file, update each [Microsoft.AspNetCore.*](https://www.nuget.org/packages?q=Microsoft.AspNetCore.*), [Microsoft.Extensions.*](https://www.nuget.org/packages?q=Microsoft.Extensions.*), and [System.Net.Http.Json](https://www.nuget.org/packages/System.Net.Http.Json) package reference's `Version` attribute to 5.0.0 or later. For example: