Find JsonSerializerOptions.AddContext usage (SYSLIB0049)

Proprietary

Finds calls to JsonSerializerOptions.AddContext<T>() which is obsolete in .NET 8 (SYSLIB0049). Use TypeInfoResolverChain or TypeInfoResolver instead.

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

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