$nuget search in project.assets.json
Full Changelog: v2.2.100...v2.2.139
NuGet search through project.assets.json files
You can search for NuGet packages (by name or version), dependencies (direct or transitive) and files coming from NuGet packages:
List MyProject.csproj dependencies:
$nuget project(MyProject.csproj)
Search for Package.Name in both dependencies and resolved packages:
$nuget project(MyProject.csproj) Package.Name
Search for a file coming from a NuGet package:
$nuget project(MyProject.csproj) File.dll
Search for a specific version or version range:
$nuget project(.csproj) 13.0.3
Use project(.) or project(.csproj) to search all projects (slow).
Right-click on a project to view NuGet dependencies.
File copy search
Search for $copy filename
to find all files copied during the build.
Search for $copy directory\path
to find all files copied in and out of this directory.
Search for $copy full\file\path
to see the copy operations involving the given file.
If the file was copied from a NuGet package it will show which NuGet package and why the project depends on that package (via which chain of dependencies).
If the file was copied because it was added to None or Content item with CopyToOutputDirectory Always or PreserveNewest, this will be shown as well.