Migrating Cryptography Namespaces

Migrates System.Security.Cryptography namespace usage from .NET Framework to modern .NET. Analyzes C# source files to detect cryptographic type usage and adds the correct using statements and NuGet packages after the namespace split (X509Certificates, Pkcs, Xml). Use when upgrading .NET Framework projects that reference System.Security.Cryptography, fixing CS0246 errors for X509Certificate2, SignedCms, SignedXml, or other crypto types, or adding missing using statements for cryptography namespaces in .cs files.

Microsoft Updated 195k repo stars
image

File contents

microsoft/upgrade-agent-plugins commit 10f7f319f8

Frequently asked questions

npx get-skill add microsoft/migrating-cryptography-namespaces