【问题标题】:Get all installed nuget dependencies via nuget.exe通过 nuget.exe 获取所有已安装的 nuget 依赖项
【发布时间】:2018-04-24 13:51:38
【问题描述】:

我想通过nuget.exe 读取特定项目/解决方案的所有已安装依赖项。我知道,这是通过 NuGet 包管理器控制台通过 Get-Package 命令工作的,但由于我想在 powershell 命令中运行它,我想直接通过 nuget.exe 访问它。

nuget list 仅列出源的可用包,而不是我的依赖项。

【问题讨论】:

  • 你想通过nuget从PS脚本中获取项目依赖?

标签: c# .net-core nuget


【解决方案1】:

在最新推荐版本4.6.2 的文档中,没有任何信息表明可以从解决方案或appsettings.json 中列出包。您只能使用 Powershell 接口。

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-10-20
    • 2019-01-24
    • 1970-01-01
    相关资源
    最近更新 更多