Migrate to .NET 5
ProprietaryMigrate C# projects from .NET Core 3.1 to .NET 5.0. Includes all .NET Core 3.0 and 3.1 migration steps. See https://learn.microsoft.com/en-us/dotnet/core/compatibility/5.0.
OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net5. UpgradeToDotNet5mod run . --recipe= OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net5. UpgradeToDotNet5Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Migrate to .NET Core 3.1
- Change .NET target framework
- Upgrade NuGet package version
- Upgrade NuGet package version
- Upgrade NuGet package version
- Upgrade NuGet package version
- Upgrade NuGet package version
- Ensure csproj attestation
- Change type
- Change type
- Find Code Access Security usage (obsolete in .NET 5)
- Find
PrincipalPermissionAttributeusage (SYSLIB0003) - Find
Encoding.UTF7usage (SYSLIB0001) - Find
WinHttpHandlerusage (removed in .NET 5) - Find WinRT interop usage (removed in .NET 5)