Module has dependency
MSALSearches for .NET projects that have a NuGet package dependency matching the specified package id. Places a SearchResult marker on all sources within a project with a matching dependency. A source belongs to the project file (.csproj, .vbproj, .fsproj) in its nearest enclosing directory. This recipe is intended to be used as a precondition for other recipes. For example this could be used to limit the application of a migration to only projects that use a specific version of a package. If the search result you want is instead just the project file referencing the package, use the FindNuGetPackageReference recipe instead.
org. openrewrite. csharp. search. ModuleHasDependencyRequired
Package id glob pattern used to match dependencies. Matching is case-insensitive.
Optional
Match only dependencies with the specified resolved version. Node-style version selectors may be used. All versions are searched by default.
If enabled, transitive dependencies will not be considered. All dependencies are searched by default.
mod run . --recipe= org. openrewrite. csharp. search. ModuleHasDependency \
-P packageIdPattern= 'Microsoft. EntityFrameworkCore*'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.