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
我有两个项目,一个是类库,另一个是mvc3项目。它们都有与它们相关的nuget包。在类库中,当我右键单击解决方案时,我将获得“启用NuGet Packges Restore”选项
In the MVC one I do not.
在MVC中我没有。
needless to say I would like the feature for both projects. what am I doing wrong?
不用说,我喜欢这两个项目的特性。我做错了什么?
2 个解决方案
#1
39
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.
当扩展检测到$(SolutionDir)存在时,NuGet包恢复上下文菜单项将被隐藏。包含nuget的文件夹。nuget exe。配置和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.
MVC应用程序已经有了这些,所以应该启用恢复。如果没有,只需删除.nuget文件夹,您将看到菜单项重新出现。
#2
2
For me it was as simple as:
对我来说,这很简单:
"Manage NuGet Packages for Solution" -> "Restore" (top right of dialog)
“管理NuGet软件包”->“恢复”(对话框右上角)
#1
39
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.
当扩展检测到$(SolutionDir)存在时,NuGet包恢复上下文菜单项将被隐藏。包含nuget的文件夹。nuget exe。配置和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.
MVC应用程序已经有了这些,所以应该启用恢复。如果没有,只需删除.nuget文件夹,您将看到菜单项重新出现。
#2
2
For me it was as simple as:
对我来说,这很简单:
"Manage NuGet Packages for Solution" -> "Restore" (top right of dialog)
“管理NuGet软件包”->“恢复”(对话框右上角)