← All recipes
Moderne licensed

Find Assembly.CodeBase/EscapedCodeBase usage (SYSLIB0012)

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

Finds usages of Assembly.CodeBase and Assembly.EscapedCodeBase which are obsolete (SYSLIB0012). Use Assembly.Location instead.

Single recipesearchdotnetreflectionnet6Proprietary

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

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

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