4
我試圖在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
是什麼原因造成這個錯誤?