← All recipes
Moderne licensed

Find X500DistinguishedName string constructor stricter validation

Recipe IDOpenRewrite.Recipes.CSharp.Migration.Dotnet.Net10.FindX500DistinguishedNameValidationArtifactOpenRewrite.Recipes.CSharp.Migration.Dotnet

Finds new X500DistinguishedName(string, ...) constructor calls which have stricter validation in .NET 10. Non-Windows environments may reject previously accepted values.

Single recipenet10searchdotnetcryptographyProprietary

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.Net10.FindX500DistinguishedNameValidation

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

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