Find XmlWriter invalid-surrogate-pair change

Proprietary

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.

OpenRewrite.Recipes.CSharp.Migration.Dotnet.NetFramework.FindXmlWriterInvalidSurrogate
mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.NetFramework.FindXmlWriterInvalidSurrogate

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