← All recipes
Moderne licensed

Find Swashbuckle usage (ASP.NET Core 9 built-in OpenAPI)

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

Finds usages of Swashbuckle APIs (AddSwaggerGen, UseSwagger, UseSwaggerUI). .NET 9 includes built-in OpenAPI support. Consider migrating to AddOpenApi()/MapOpenApi().

Single recipeaspnetsearchdotnetnet9Proprietary

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

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

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