Find SafeEvpPKeyHandle.DuplicateHandle up-ref change
Recipe ID
OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net9.FindSafeEvpPKeyHandleDuplicateArtifactOpenRewrite.Recipes.CSharp.Migration.DotnetFinds calls to SafeEvpPKeyHandle.DuplicateHandle(). In .NET 9, this method now increments the reference count instead of creating a deep copy, which may affect handle lifetime.
Single recipesearchdotnetcryptographynet9Proprietary
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.Net9.FindSafeEvpPKeyHandleDuplicateIf the recipe isn’t available locally, install it with:
mod config recipes nuget install OpenRewrite.Recipes.CSharp.Migration.Dotnet