← All recipes
Moderne licensed

Find SetCompatibilityVersion() calls

Recipe IDOpenRewrite.Recipes.CSharp.Migration.Dotnet.AspNetCore2.FindSetCompatibilityVersionArtifactOpenRewrite.Recipes.CSharp.Migration.Dotnet

Flags SetCompatibilityVersion calls. This method is a no-op in ASP.NET Core 3.0+ and should be removed during migration.

Single recipecsharpsearchaspnetcoremigrationProprietary

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.AspNetCore2.FindSetCompatibilityVersion

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

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