程序包管理器控制台不起作用

编程入门 行业动态 更新时间:2024-10-24 23:18:08
本文介绍了程序包管理器控制台不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

根据此 docs.nuget/docs/从这里开始/使用软件包管理器控制台,我应该看到PM提示符,并且像get-packages这样的命令应该可以工作.在我的VS2010中,程序包管理器控制台提示会显示

According to this docs.nuget/docs/start-here/using-the-package-manager-console I should see the PM prompt and commands like get-packages should work. With my VS2010 the Package Manager Console prompt says

PS E:\myprojectfolder

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

and none of the commands work - it issues an error saying:

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

有什么想法吗?

推荐答案

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

Rather than voting to close and leaving the answer in comments, it's worth posting it as an actual answer so that others with the problem see an answered question in search results, rather than an unanswered one :-)

从评论中复制:

重新启动计算机,VS以某种方式解决了该问题,关闭了

restarting the computer and VS somehow fixed this issue, closing

是的,我之前曾见过此问题(未加载NuGet模块)

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

此问题位于 NuGet问题跟踪器(尽管目前已关闭)

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

更多推荐

程序包管理器控制台不起作用

本文发布于:2023-11-15 22:11:29,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1598405.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:控制台   管理器   不起作用   程序包

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!