我尝试在Package Manager控制台中执行“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”。
是否发生此错误是因为最新版本的Nuget不再支持List-Package
命令?我们可能需要使用命令Get-package list-package
而不是List-Package
导致此错误的原因是什么?