How to enable nugets package restore in Visual Studio 2015?

前端 未结 7 630
被撕碎了的回忆
被撕碎了的回忆 2020-12-07 18:51

How do I enable the nuget package restore feature in Visual Studio 2015?

The feature is just missing in my context menu (Yes - I\'ve double checked that I try it on

7条回答
  •  旧时难觅i
    2020-12-07 19:27

    My Visual Studio 2015 Professional was installed using the default settings. The options for "Allow NuGet to download missing packages" and "Automatically check for missing packages during build in Visual Studio" were already checked by default, but I still could not download the packages. I was getting an error that a package version could not be found.

    I needed to click a checkbox under Tools > Options > NuGet Package Manager > Package Sources to enable NuGet Package Restore to work as expected.

提交回复
热议问题