← All recipes
Moderne licensed

Find DllImportSearchPath.AssemblyDirectory behavior change

Recipe IDOpenRewrite.Recipes.CSharp.Migration.Dotnet.Net10.FindDllImportSearchPathArtifactOpenRewrite.Recipes.CSharp.Migration.Dotnet

Finds usages of DllImportSearchPath.AssemblyDirectory which has changed behavior in .NET 10. Specifying only AssemblyDirectory no longer falls back to OS default search paths.

Single recipenet10searchdotnetinteropProprietary

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.Net10.FindDllImportSearchPath

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

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