← All recipes
Moderne licensed

Find ServiceBase.Run usage (OnStart exception propagation)

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

ServiceBase.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.FindServiceBaseRunOnStart

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

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