Nuget - Don't see allow nuget to download missing packages during build

后端 未结 4 1076
走了就别回头了
走了就别回头了 2020-12-23 19:13

I get a message saying the following:

Error 1 Package restore is disabled by default. To give consent, open the Visual Studio Options dialog,

4条回答
  •  一个人的身影
    2020-12-23 19:48

    I am using Visual Studio 2010 and NuGet 2.0.

    Someone had checked in a solution that used NuGet for various packages. When I checked out the solution and built it, I got the same errors. What's more, when I viewed the NuGet Package Manager from the Tools -> Options window, the Package Restore already had the appropriate check boxes checked.

    I tried clicking the Clear Package Cache button. After doing that, everything built correctly.

    enter image description here

提交回复
热议问题