Use ConfigurationManager's configuration APIs

Proprietary

Replace resolved ConfigurationSettings.AppSettings access with ConfigurationManager.AppSettings and ConfigurationSettings.GetConfig(section) with ConfigurationManager.GetSection(section). These preserve the existing XML configuration model. Modern .NET requires the System.Configuration.ConfigurationManager package for either API. Unresolved calls, method groups, and conditional-compilation files are left unchanged.

OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net3_0.UseConfigurationManagerApis
mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net3_0.UseConfigurationManagerApis

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