Find NuGet package reference
Recipe ID
OpenRewrite.CSharp.Recipes.FindNuGetPackageReferenceArtifactOpenRewrite.Recipes.CSharp.CoreSearches for .csproj files that reference a specific NuGet package. Intended for use as a precondition to scope other recipes.
Single recipeProprietary
Usage
You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe OpenRewrite.CSharp.Recipes.FindNuGetPackageReference --recipe-option "PackageName=Swashbuckle.AspNetCore"If the recipe isn’t available locally, install it with:
mod config recipes nuget install OpenRewrite.Recipes.CSharp.CoreOptions
| Name | Type | Description |
|---|---|---|
PackageNamerequired | String | The NuGet package name to search for. Supports glob patterns. e.g. Swashbuckle.AspNetCore |