Find JsonSerializerOptions.AddContext usage (SYSLIB0049)
Recipe ID
OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net8.FindAddContextArtifactOpenRewrite.Recipes.CSharp.Migration.DotnetFinds calls to JsonSerializerOptions.AddContext<T>() which is obsolete in .NET 8 (SYSLIB0049). Use TypeInfoResolverChain or TypeInfoResolver instead.
Single recipeserializationsearchdotnetnet8Proprietary
Usage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net8.FindAddContextIf the recipe isn’t available locally, install it with:
mod config recipes nuget install OpenRewrite.Recipes.CSharp.Migration.Dotnet