← All recipes
Moderne licensed

Find XmlWriter invalid-surrogate-pair change

Recipe IDOpenRewrite.Recipes.CSharp.Migration.Dotnet.NetFramework.FindXmlWriterInvalidSurrogateArtifactOpenRewrite.Recipes.CSharp.Migration.Dotnet

Finds XmlWriter usage. The Write* methods throw ArgumentException on invalid surrogate pairs when retargeting to .NET Framework 4.6 (previously they were written through). Review XmlWriter usage that may emit lone surrogates.

Single recipesearchdotnetnet-frameworkxmlProprietary

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.NetFramework.FindXmlWriterInvalidSurrogate

If the recipe isn’t available locally, install it with:

mod config recipes nuget install OpenRewrite.Recipes.CSharp.Migration.Dotnet