简体   繁体   English

CLI命令从Nuget获取一个软件包的详细信息

[英]CLI command to fetch detail for one package from Nuget

I need to get detail for one package from Nuget through CLI command. 我需要通过CLI命令从Nuget中获取一个软件包的详细信息。 Below command returns me all packages which is unusable as it take alot of time to get executed. 下面的命令向我返回所有无法使用的包,因为要花很多时间才能执行它们。

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

From Visual Studio: 在Visual Studio中:

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

(or to be depreciated) (或要折旧)

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

From Powershell v5: 从Powershell v5:

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

You might be promted smth like 您可能会像

Blockquote nuget may be manually downloaded from https://oneget.org/Microsoft.PackageManagement.NuGetProvider-2.8.5.207.dll and installed. 可以从https://oneget.org/Microsoft.PackageManagement.NuGetProvider-2.8.5.207.dll手动下载Blockquote nuget并进行安装。 Would you like PackageManagement to automatically download and install 'nuget' now? 您希望PackageManagement立即自动下载并安装“ nuget”吗?

In older versions of Powershell you might need to look into OneGet package manager ( https://github.com/OneGet/oneget ) 在旧版的Powershell中,您可能需要研究OneGet软件包管理器( https://github.com/OneGet/oneget

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

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