Compartilhar via


NuGet@0 - NuGet command v0 task

NuGet@0 is deprecated. Use the NuGetCommand task instead. It works with the new Tool Installer framework so you can easily use new versions of NuGet without waiting for a task update, provides better support for authenticated feeds outside this organization/collection, and uses NuGet 4 by default.

Inputs

command - Command
string. Required.

Specifies the NuGet command to run. Set the value as Custom to add arguments or to use a different command. The allowed values are restore, pack, custom, and push.


arguments - Arguments
string.

Specifies the command and arguments that will be passed to NuGet.exe for execution. If NuGet 3.5 or later is used, authenticated commands like list, restore, and publish against any feed in this organization or collection that the Project Collection Build Service has access to will be automatically authenticated.


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 2.115.0 or greater
Task category Package