简体   繁体   English

通过nuget.exe获取所有已安装的nuget依赖项

[英]Get all installed nuget dependencies via nuget.exe

I'd like to read all installed dependencies via nuget.exe of a specific project / solution. 我想通过特定项目/解决方案的nuget.exe读取所有已安装的依赖nuget.exe I am aware, that this is working via Get-Package command via the NuGet Package Manager Console, but as i want to run this in a powershell command, i'd like to have access to it via nuget.exe directly. 我知道,这是通过NuGet软件包管理器控制台通过Get-Package命令运行的,但是由于我想在powershell命令中运行此命令,因此我想直接通过nuget.exe访问它。

nuget list only lists the available packages of a source, not of my dependencies. nuget list仅列出源的可用软件包,而不列出我的依赖项。

In documentation for latest recommended version 4.6.2 there isn't any information that it can be possible to list packages from solution or appsettings.json . 在最新推荐版本4.6.2文档中,没有任何信息可以列出来自solution或appsettings.json软件包。 You can use only Powershell interface. 您只能使用Powershell界面。

Documentation: https://docs.microsoft.com/en-us/nuget/tools/nuget-exe-cli-reference 文档: https : //docs.microsoft.com/zh-cn/nuget/tools/nuget-exe-cli-reference

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM