← All recipes
Moderne licensed

Find InMemoryDirectoryInfo rootDir prepend change

Recipe IDOpenRewrite.Recipes.CSharp.Migration.Dotnet.Net9.FindInMemoryDirectoryInfoArtifactOpenRewrite.Recipes.CSharp.Migration.Dotnet

Finds new InMemoryDirectoryInfo() constructor calls. In .NET 9, rootDir is prepended to file paths that don't start with the rootDir, which may change file matching behavior.

Single recipesearchdotnetnet9globbingProprietary

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.Net9.FindInMemoryDirectoryInfo

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

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