Find Thread.Abort usage (SYSLIB0006)

Proprietary

Finds calls to Thread.Abort() which throws PlatformNotSupportedException in .NET 6+ (SYSLIB0006). Use CancellationToken for cooperative cancellation instead.

OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net6.FindThreadAbort
mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net6.FindThreadAbort

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