The Nuget Restore action is used to populate a set of NuGet packages on the build server (usually prior to these packages being built into your project).
A friendly name for this action (will be displayed in the stages area).
The location of your .sln or packages.conf file within your source control.
Optional list of NuGet Feed package sources (the default source location is nuget.org).
Location of the nuget.config file within your source control.
The location of the NuGet executable file used to run this action.
Look to the local package Cache before going to NuGet or external sources.
As of NuGet version 2.0 a privacy-related constraint option for restores from introduced. When ticked NuGet will check to see if package restore consent has been granted before installing package(s). If ticked NuGet will look for the presence of the following within your NuGet.config file (if not present a build error will occur).
<packageRestore> <add key="enabled" value="true" /> </packageRestore> |
For further information on the NuGet require consent feature please see the NuGet documentation
By Default NuGet will download and install dependency chains in Parallel. To disable this feature tick off this option.
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.
The relative or absolute directory that NuGet will look to resolve packages. This can also be specified within the NuGet configuration file.
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.
Add Environment Variables to be used by this action