← All recipes
Moderne licensed

Find WebRequest/HttpWebRequest/WebClient usage (SYSLIB0014)

Recipe IDOpenRewrite.Recipes.CSharp.Migration.Dotnet.Net6.FindWebRequestArtifactOpenRewrite.Recipes.CSharp.Migration.Dotnet

Finds usages of WebRequest, HttpWebRequest, and WebClient which are obsolete in .NET 6 (SYSLIB0014). Use HttpClient instead.

Single recipesearchdotnetnet6networkingProprietary

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.Net6.FindWebRequest

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

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