CLI命令从Nuget

时间:2016-10-05 15:37:33

标签: .net nuget command-line-interface

我需要通过CLI命令从Nuget获取一个包的详细信息。下面的命令返回所有不可用的包,因为它需要很多时间来执行。

nuget list -source http://nuget.org/api/v2

1 个答案:

答案 0 :(得分:0)

来自Visual Studio:

Find-Package -Source "http://nuget.org/api/v2" -Id "SomeName"

(或待折旧)

Get-Package -ListAvailable -Source "http://nuget.org/api/v2" -Filter *SomeName*

来自Powershell v5:

Find-Package -Source "http://nuget.org/api/v2" -Name "SomeName"

你可能会像

一样受到欢迎
  

块引用   nuget可以从https://oneget.org/Microsoft.PackageManagement.NuGetProvider-2.8.5.207.dll手动下载并安装。   您是否希望PackageManagement立即自动下载并安装'nuget'?

在早期版本的Powershell中,您可能需要查看OneGet包管理器(https://github.com/OneGet/oneget

相关问题