← All recipes
Moderne licensed

Find PrincipalPermissionAttribute usage (SYSLIB0003)

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

Finds usages of PrincipalPermissionAttribute which is obsolete in .NET 5+ (SYSLIB0003) and throws NotSupportedException at runtime.

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

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

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