← All recipes
Moderne licensed

Find obsolete AddRazorRuntimeCompilation calls (ASPDEPR003)

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

Finds calls to AddRazorRuntimeCompilation which is obsolete in .NET 10. Use Hot Reload instead for development scenarios.

Single recipenet10searchdotnetaspnetcoreProprietary

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

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

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