← All recipes
Moderne licensed

Find SerialPort usage (background-thread exception behavior)

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

SerialPort no longer terminates the process when its background thread hits an OS exception when retargeting to .NET Framework 4.7.1 (Switch.System.IO.Ports.DoNotCatchSerialStreamThreadExceptions to revert). Review SerialPort error handling.

Single recipesearchdotnetnet-frameworkioProprietary

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.FindSerialPortThreadException

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

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