Find cryptography AppContext switches

Proprietary

Find AppContext.SetSwitch calls that change cryptography or TLS behavior (switches under System.Security.Cryptography, System.Net.Security, System.Net.Http and their Switch. compatibility forms, such as Switch.System.Net.DontEnableSystemDefaultTlsVersions). These process-wide settings can pin legacy behavior that blocks newer protocols and algorithms.

OpenRewrite.CSharp.Recipes.Cryptography.FindCryptographyAppContextSwitches
mod run . --recipe=OpenRewrite.CSharp.Recipes.Cryptography.FindCryptographyAppContextSwitches

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