Find BinaryFormatter usage (removed in .NET 9)

Proprietary

Finds usages of BinaryFormatter which always throws NotSupportedException in .NET 9. Migrate to a different serializer such as System.Text.Json, XmlSerializer, or DataContractSerializer.

OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net9.FindBinaryFormatter
mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net9.FindBinaryFormatter

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