← All recipes
Moderne licensed

Find Code Access Security usage (obsolete in .NET 5)

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

Finds usages of Code Access Security types (SecurityPermission, PermissionSet, etc.) which are obsolete in .NET 5+.

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

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

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