← All recipes
Moderne licensed

Find Encoding.UTF7 usage (SYSLIB0001)

Recipe IDOpenRewrite.Recipes.CSharp.Migration.Dotnet.Net5.FindUtf7EncodingArtifactOpenRewrite.Recipes.CSharp.Migration.Dotnet

Finds usages of Encoding.UTF7 and UTF7Encoding which are obsolete in .NET 5+ (SYSLIB0001). UTF-7 is insecure.

Single recipesearchsecuritydotnetnet5Proprietary

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.Net5.FindUtf7Encoding

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

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