← All recipes
Moderne licensed

Find System.IO.Path normalization change

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

Finds uses of System.IO.Path, whose normalization defers to the OS and supports long (>260 char) paths when retargeting to .NET Framework 4.6.2 (Switch.System.IO.UseLegacyPathHandling / Switch.System.IO.BlockLongPaths to revert). Review path handling and PathTooLongException assumptions.

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

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

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