Find IHostingEnvironment usage
Recipe ID
OpenRewrite.Recipes.CSharp.Migration.Dotnet.AspNetCore3.FindIHostingEnvironmentArtifactOpenRewrite.Recipes.CSharp.Migration.DotnetFlags usages of IHostingEnvironment which should be replaced with IWebHostEnvironment in ASP.NET Core 3.0.
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.AspNetCore3.FindIHostingEnvironmentIf the recipe isn’t available locally, install it with:
mod config recipes nuget install OpenRewrite.Recipes.CSharp.Migration.Dotnet