VS2012 Enable NuGet Package Restore disappears, missing

后端 未结 2 600
独厮守ぢ
独厮守ぢ 2021-01-01 11:21

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

相关标签:
2条回答
  • 2021-01-01 12:09

    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.

    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.

    0 讨论(0)
  • 2021-01-01 12:13

    For me it was as simple as:

    "Manage NuGet Packages for Solution" -> "Restore" (top right of dialog)

    0 讨论(0)
提交回复
热议问题