Nuget列表-包错误



我尝试在包管理器控制台执行"List-Package",在Nuget包中出现以下错误。

The term 'List-Package' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
 verify that the path is correct and try again.
At line:1 char:13
+ List-Package <<<< 
    + CategoryInfo          : ObjectNotFound: (List-Package:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

我输入get-help Nuget查看所有可用的Nuget命令。但是我在搜索结果中看不到"List-Package"

是否因为List-Package命令在最新版本的Nuget中不再支持而发生此错误?也许我们需要使用Get-package list-package命令而不是List-Package

是什么导致这个错误?

List-Package命令名不正确。

应该使用Get-Package命令

详情请访问docs.nuget.org

最新更新