Find NuGet package reference

Proprietary

Searches for .csproj files that reference a specific NuGet package. Intended for use as a precondition to scope other recipes.

OpenRewrite.CSharp.Recipes.FindNuGetPackageReference

Required

The NuGet package name to search for. Supports glob patterns.

mod run . --recipe=OpenRewrite.CSharp.Recipes.FindNuGetPackageReference \ -P PackageName=Swashbuckle.AspNetCore

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.