← All recipes
Moderne licensed

Find HttpRuntime.AppDomainAppPath (exception type change)

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

HttpRuntime.AppDomainAppPath throws NullReferenceException (instead of ArgumentNullException) for paths with null characters when retargeting to .NET Framework 4.6.2; this reverts to ArgumentNullException at 4.7. Review exception handling.

Single recipeaspnetsearchdotnetnet-frameworkProprietary

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

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

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