Find PrincipalPermissionAttribute usage (SYSLIB0003)

Proprietary

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

OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net5.FindPrincipalPermissionAttribute
mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net5.FindPrincipalPermissionAttribute

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.