Find Regex.CompileToAssembly usage (SYSLIB0052)

Proprietary

Finds usage of Regex.CompileToAssembly() and RegexCompilationInfo. These are obsolete in .NET 8 (SYSLIB0052). Use the Regex source generator instead.

OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net8.FindRegexCompileToAssembly
mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net8.FindRegexCompileToAssembly

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