แชร์ผ่าน


NuGetInstaller@0 - NuGet Installer v0 task

Installs or restores missing NuGet packages.

Inputs

solution - Path to solution or packages.config
string. Required. Default value: **/*.sln.

The path to the Visual Studio solution file or NuGet packages.config.


nugetConfigPath - Path to NuGet.config
string.

Equivalent to the -ConfigFile NuGet.exe command line argument.


restoreMode - Installation type
string. Required. Allowed values: restore, install. Default value: restore.

Restore will restore the packages a solution depends upon, and is generally what you want.

Install will install packages from a packages.config file. Use this option if you want to install a standalone tool package.


noCache - Disable local cache
boolean. Default value: false.

Equivalent to the -NoCache NuGet.exe command line argument.


nuGetRestoreArgs - NuGet arguments
string.

Additional arguments passed to NuGet.exe restore or install. More Information.


verbosity - Verbosity
string. Allowed values: -, Quiet, Normal, Detailed. Default value: -.

NuGet's verbosity level.


nuGetVersion - NuGet Version
string. Required. Allowed values: 3.3.0, 3.5.0.1829 (3.5.0), 4.0.0.2283 (4.0.0), custom. Default value: 3.3.0.

The version of NuGet to use, or external version.


nuGetPath - Path to NuGet.exe
string.

Optionally supply the path to NuGet.exe. Will override version selection.


Task control options

All tasks have control options in addition to their task inputs. For more information, see Control options and common task properties.

Output variables

None.

Requirements

Requirement Description
Pipeline types YAML, Classic build, Classic release
Runs on Agent, DeploymentGroup
Demands None
Capabilities This task does not satisfy any demands for subsequent tasks in the job.
Command restrictions Any
Settable variables Any
Agent version 1.83.0 or greater
Task category Package