列出 VS2017 中 .NET Core 项目给定 project/Solution 的所有带有 "dependencies recursively" 的 nuget 包

List all the nuget packages with "dependencies recursively" for a given project/Solution for .NET Core project in VS2017

我想递归列出所有 nuget 包及其依赖项。 项目在 VS2017 和 .NET Core 中。

我试过 Get-Package -ProjectName "Your.Project.Name" 它显示了项目中的所有 nuget 包。我还希望打印所有依赖项。

您可以使用 dotnet cli:dotnet list package --include-transitive。 dotnet-outdated 全局工具可能具有类似的功能。