简体   繁体   English

已安装nuget,但在工具中看不到菜单选项“添加库包参考”

[英]Installed nuget, but don't see the menu option Add Library Package Reference in tools

I installed nuget using the extension manager in vs.net 2010 ultimate. 我在vs.net 2010 Ultimate中使用扩展管理器安装了nuget。

It re-started, and I still don't see the "Add Library Package Reference" menu in the tools menu. 它重新启动,但我仍然在工具菜单中看不到“添加库包参考”菜单。

What could be the issue? 可能是什么问题?

I can only get to the powershell console and use nuget. 我只能进入Powershell控制台并使用nuget。

Library Package Reference is there in Tools, but it has only 2 options: 工具包中有“库软件包参考”,但只有两个选项:

Package manager console
Package manager settings 

I believe that this may be the default. 我相信这可能是默认设置。 It's the same for me and I have Ultimate 2010 too... 对我来说也是一样,我也有Ultimate 2010 ...

When I open a solution file I get additional options "Manage NuGet Package for solution" 打开解决方案文件时,我会获得其他选项“为解决方案管理NuGet软件包”

I do get options to manage NuGet packages when I right click on a Solution file in the solution explorer. 当我在解决方案资源管理器中右键单击解决方案文件时,我确实获得了管理NuGet软件包的选项。 I just have to have a solution loaded. 我只需要加载一个解决方案。

I assumed this was how it supposed to work as I've never seen it working any other way... 我以为这就是它应该如何工作的方式,因为我从未见过它能以任何其他方式工作...

如果您没有打开一个支持它的解决方案/项目,则只会看到这两个选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM