Find PrincipalPermissionAttribute usage (SYSLIB0003)
Recipe ID
OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net5.FindPrincipalPermissionAttributeArtifactOpenRewrite.Recipes.CSharp.Migration.DotnetFinds 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.FindPrincipalPermissionAttributeIf the recipe isn’t available locally, install it with:
mod config recipes nuget install OpenRewrite.Recipes.CSharp.Migration.Dotnet