← All recipes
Moderne licensed

Find UseKestrel() with configuration

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

Flags UseKestrel calls with configuration lambdas that should be replaced with ConfigureKestrel to avoid conflicts with the IIS in-process hosting model.

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.FindUseKestrelWithConfig

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

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