Find ServicePointManager TLS configuration

Proprietary

Finds usages of System.Net.ServicePointManager whose TLS behavior changes when retargeting to .NET Framework 4.6+ (SchUseStrongCrypto) and 4.7+ (SystemDefault protocol). The opt-out switches are Switch.System.Net.DontEnableSchUseStrongCrypto and Switch.System.Net.DontEnableSystemDefaultTlsVersions.

OpenRewrite.Recipes.CSharp.Migration.Dotnet.NetFramework.FindServicePointManagerSecurityProtocol
mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.NetFramework.FindServicePointManagerSecurityProtocol

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