Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

As of NuGet version 2.0 a privacy-related constraint option for restores from introduced. When ticked this NuGet will check to see if package restore consent is has been granted before installing package(s). If this box is ticked NuGet will look for the presence of the following within your NuGet.config file (if not present a build error will occur).    

Code Block
languagexml
<packageRestore>
  <add key="enabled" value="true" />
</packageRestore>

For further information on the NuGet require consent feature please see the NuGet documentation 

 

 

 

 

 

 

Enable Parallel Processing

By Default NuGet will download and install dependency chains in Parallel.  To disable this feature tick off this option.

Enable Package Restore

When ticking this check box adds the relevant system environment variable 'EnableNuGetPackageRestore = true'. This is the equivalent of clicking “Allow NuGet to download missing packages during build' ticked within Visual Studio.

Packages Directory

The relative or absolute directory that NuGet will look to resolve packages.  This can also be specified within the NuGet configuration file.

Solution Directory

The relative or absolute directory to use when restoring packages for a solution. <solutionDirectory>\packages is used as the packages directory.  This option is not valid when restoring packages for a solution file in this scenario $(SolutionDir)\packages is used as the packages directory.


Image Added

Add Environment Variables to be used by this action