NuGet - Can not find 'Add Library Package Reference…'

纵饮孤独 提交于 2019-12-23 15:15:00

问题


I am using Visual Studio 2010 SP1 with MVC3 installed. As I am in the process of learning NuGet basics, I was going through this tutorial http://maleevdimka.com/post/NuGet-Part-1.aspx

I should go for 'Add Library Package Reference...' option to add default available feeds. However when I go to my web application project in VS 2010, I see something else - 'Manage NuGet Packages...'. If I click this, I have a dialog box with available online packages each with Install button.

Is 'Add Library Package Reference...' option no longer available in VS 2010 and is replaced by 'Manage NuGet Packages...'?

Please guide!


回答1:


The link "Add Library Package Reference..." has been renamed to "Manage NuGet Packages..." in NuGet 1.4 the UI is still the same (with a few updates).

source: http://nuget.codeplex.com/workitem/1032




回答2:


The "Manage NuGet Packages for Solution..." option may not appear in the Tools->Library Package Manager menu in certain cases, such as when you're debugging(because you usually can't edit a solution while running) or if you don't have at least one file open/selected. This tripped me up for a bit.



来源:https://stackoverflow.com/questions/7245845/nuget-can-not-find-add-library-package-reference

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!