gpt4 book ai didi

.net - 包管理器控制台不工作

转载 作者:行者123 更新时间:2023-12-03 07:17:47 25 4
gpt4 key购买 nike

根据这个http://docs.nuget.org/docs/start-here/using-the-package-manager-console我应该看到 PM 提示,并且像 get-packages 这样的命令应该可以工作。在我的 VS2010 中,包管理器控制台提示显示

PS E:\myprojectfolder

并且所有命令都不起作用 - 它会发出错误消息:

PS E:\project>  get-package -ListAvailable
The term 'get-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 co
rrect and try again.
At line:1 char:12
+ get-package <<<< -ListAvailable
+ CategoryInfo : ObjectNotFound: (get-package:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

有什么想法吗?

最佳答案

与其投票结束并将答案留在评论中,不如将其作为实际答案发布,以便其他有问题的人在搜索结果中看到已回答的问题,而不是未回答的问题:-)

从评论中复制:

restarting the computer and VS somehow fixed this issue, closing

Yes I've seen this issue before (where the NuGet module isn't loaded)

This issue is on the NuGet issue tracker, though it's closed (at the moment)

关于.net - 包管理器控制台不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6891966/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com