NuGetCommandLineToolTask.

InvokeNuGet(IEnumerable<string>, DataReceivedEventHandler) Method

Summary

Invokes the NuGet command line tool with the given arguments in the provided workspace directory.

Syntax

protected int InvokeNuGet(IEnumerable<string> arguments, DataReceivedEventHandler standardOutputHandler = null)

Parameters

Name Type Description
arguments IEnumerable<string> The collection of arguments.
standardOutputHandler DataReceivedEventHandler The event handler that handles the standard output stream of the command line application. If no value is provided then all messages are logged.

Return Value

Type Description
int The output of the GIT process