VS2012启用的NuGet包还原消失,失踪 [英] VS2012 Enable NuGet Package Restore disappears, missing

查看:1757
本文介绍了VS2012启用的NuGet包还原消失,失踪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个项目的人一个类库和那些一个MVC3项目。他们都有与之相关联的NuGet包。在类库当我右键单击该解决方案,我得到了启用的NuGet Packges还原选项

I have two projects ones a class library and ones an mvc3 project. They both have nuget packages associated with them. On the class library when I right click the solution I get the "Enable NuGet Packges Restore" option

在MVC的一个我不知道。

In the MVC one I do not.

不用说,我想这两个项目的功能。我究竟做错了什么?

needless to say I would like the feature for both projects. what am I doing wrong?

推荐答案

该包的NuGet时还原扩展检测到$(SolutionDir).nuget文件夹包含nuget.exe的presence上下文菜单项是隐藏的, nuget.config和nuget.targets需要执行包恢复。

The NuGet package restore context menu item is hidden when the extension detects the presence of a $(SolutionDir).nuget folder containing the nuget.exe, nuget.config and nuget.targets needed to perform package restore.

在MVC应用程序已经具备了这些,所以恢复应该启用。如果没有,直接删除文件夹.nuget,你会看到该菜单项出现。

The MVC app already has these, so restore should be enabled. If not, simply delete the .nuget folder and you'll see the menu item reappear.

这篇关于VS2012启用的NuGet包还原消失,失踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆