Find SerialPort usage (background-thread exception behavior)
Recipe ID
OpenRewrite.Recipes.CSharp.Migration.Dotnet.NetFramework.FindSerialPortThreadExceptionArtifactOpenRewrite.Recipes.CSharp.Migration.DotnetSerialPort 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.FindSerialPortThreadExceptionIf the recipe isn’t available locally, install it with:
mod config recipes nuget install OpenRewrite.Recipes.CSharp.Migration.Dotnet