Skip to content

Instantly share code, notes, and snippets.

@litodam
Created July 16, 2012 21:35
Show Gist options
  • Save litodam/3125230 to your computer and use it in GitHub Desktop.
Save litodam/3125230 to your computer and use it in GitHub Desktop.
Enable NuGetPackageRestore (force consent) within the NuGet.targets file
<!-- Add the following line inside the Target Name='CheckPrerequisites' of the NuGet.targets -->
<SetEnvironmentVariable EnvKey="EnableNuGetPackageRestore" EnvValue="true" Condition=" '$(VisualStudioVersion)' != '' AND '$(OS)' == 'Windows_NT' " />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment