1. On VWD 2010
2. install NuGet 2.6
3. create a project, install package and enable package restore
4. replace nuget.exe with 2.7 nuget.exe
5. delete packages folder
6. build
Actual:
package gets restored as with 2.7 nuget.exe package consent is on by default.
Whereas in VS user has opted to not download the packages.
Expected:
Either nuget.exe to honor the VS env for consent
OR
have a message similar to packagerestore event
"To prevent NuGet from restoring packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck 'Allow NuGet to download missing packages during build.'"
You can also disable package restore by setting the environment variable 'EnableNuGetPackageRestore' to 'false'.
Can you still use enable nugetpackagerestore setting with NuGet.exe to disable?
Comments: I didn't see the error message getting added with the repro steps. Following up with @Fei
2. install NuGet 2.6
3. create a project, install package and enable package restore
4. replace nuget.exe with 2.7 nuget.exe
5. delete packages folder
6. build
Actual:
package gets restored as with 2.7 nuget.exe package consent is on by default.
Whereas in VS user has opted to not download the packages.
Expected:
Either nuget.exe to honor the VS env for consent
OR
have a message similar to packagerestore event
"To prevent NuGet from restoring packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck 'Allow NuGet to download missing packages during build.'"
You can also disable package restore by setting the environment variable 'EnableNuGetPackageRestore' to 'false'.
Can you still use enable nugetpackagerestore setting with NuGet.exe to disable?
Comments: I didn't see the error message getting added with the repro steps. Following up with @Fei