的NuGet列表 - 包错误
问题描述:
我试图在NuGet包以执行程序包管理器控制台“列表-包”并获得以下错误。的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
是什么原因造成这个错误?