← All recipes
Moderne licensed

Migrate to .NET 6

Recipe IDOpenRewrite.Recipes.CSharp.Migration.Dotnet.Net6.UpgradeToDotNet6ArtifactOpenRewrite.Recipes.CSharp.Migration.Dotnet

Migrate C# projects to .NET 6, applying necessary API changes for obsoleted cryptographic types and other breaking changes. Includes all .NET Core 3.0, 3.1, and .NET 5 migration steps. See https://learn.microsoft.com/en-us/dotnet/core/compatibility/6.0.

Composite recipecsharpdotnetmigrationProprietary

Usage

This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.

mod run . --recipe OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net6.UpgradeToDotNet6

If the recipe isn’t available locally, install it with:

mod config recipes nuget install OpenRewrite.Recipes.CSharp.Migration.Dotnet

Definition

This recipe runs the following recipes in order.