You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

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).

 

Name

A friendly name for this action (will be displayed in the stages area).

Packages.config or Solution File

The location of your .sln or packages.conf file within your source control.

Sources

Optional list of NuGet Feed package sources (the default source location is nuget.org).

Configuration File

Location of the nuget.config file within your source control.

Using

The location of the NuGet executable file used to run this action.

 

Use Cache

Look to the local package Cache before going to NuGet or external sources.

Require Consent

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 

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.


Add Environment Variables to be used by this action

 

  • No labels