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

Compare with Current View Page History

« Previous Version 2 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 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 this will check to see if package restore consent is 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).  

 

<packageRestore>
  <add key="enabled" value="true" />
</packageRestore>

 

 

 

 

 

 

 

 

 

  • No labels