← All recipes
Moderne licensed

Find obsolete IPNetwork/KnownNetworks (ASPDEPR005)

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

Finds usages of Microsoft.AspNetCore.HttpOverrides.IPNetwork and ForwardedHeadersOptions.KnownNetworks which are obsolete in .NET 10. Use System.Net.IPNetwork and KnownIPNetworks instead.

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

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

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