Versions Compared

Key

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

...

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

NuGet Restore

Image RemovedImage Added

Name

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

...

Specify the solution directory. Not valid when restoring packages for a solution file (specified as the Project Path). [-SolutionDirectory]

Command Line Version

Select the version of the NuGet command line that is installed on the agent. Some other settings and options may be unavailable depending which the command line version is selected.

Using

The Using drop down is populated with any property collector whose namespace matches the pattern defined by the NuGet Restore action. The pattern for this action is ^NuGet.*

...

Alternatively, you can select the Custom option from the Using drop down list and specify a path in the resulting input field that will be displayed. Please read Why it's a good idea to use a property collector before using this option.


Download

Sources

An optional list of NuGet Feed package sources (the default source location is nuget.org). [-Source]

Fallback Sources

A list of package sources to use as fallbacks in case the package isn't found in any of the primary or default sources. One source per line. [-FallbackSource]

Package Save Mode

The type of files to save after package installation. [-PackageSaveMode]

Use cache

If this is ticked, the local package Cache is checked first before going to NuGet or external sources. [-NoCache]

Download directly without populating any caches with metadata or binaries

Downloads packages directly without populating caches with any binaries or metadata. [-DirectDownload]


Build

MSBuild Version

The version of MSBuild to use with this command. Leave blank to default to the MSBuild executable in your path, or otherwise the highest installed version of MSBuild. [-MSBuildVersion].

MSBuild Path

The path to the MSBuild executable to use with the command. This takes precedence over the MSBuild Version. [-MSBuildPath].

Recursive

Restores all references projects for UWP and .NET Core projects. Does not apply to projects using packages.config.

Project To Project Timeout

...