Find ServiceBase.Run usage (OnStart exception propagation)
Recipe ID
OpenRewrite.Recipes.CSharp.Migration.Dotnet.NetFramework.FindServiceBaseRunOnStartArtifactOpenRewrite.Recipes.CSharp.Migration.DotnetServiceBase.Run now propagates exceptions thrown from OnStart when retargeting to .NET Framework 4.7.1 (Switch.System.ServiceProcess.DontThrowExceptionsOnStart to revert). Review service startup error handling.
Single recipesearchdotnetnet-frameworkserviceprocessProprietary
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.FindServiceBaseRunOnStartIf the recipe isn’t available locally, install it with:
mod config recipes nuget install OpenRewrite.Recipes.CSharp.Migration.Dotnet