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”。
发生此错误是因为最新版本的 Nuget 不再支持 List-Package
命令吗?可能我们需要使用命令 Get-package list-package
而不是 List-Package
是什么导致了这个错误?
I tried to execute "List-Package" in Package manager console and getting following error in Nuget package.
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
i typed get-help Nuget to see all available Nuget commands.But i could not see "List-Package" in the result.
Is this error happening because List-Package
command no longer supported in latest version of Nuget? May be we need to use command Get-package list-package
instead of List-Package
what is causing this error?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
List-Package
是不正确的命令名称。您应该使用
Get-Package
命令查看 docs.nuget.org 的详细信息
List-Package
is incorrect command name.You should use
Get-Package
commandLook details at docs.nuget.org