Sdílet prostřednictvím


ToolTask.ExecuteTool(String, String, String) Method

Definition

Writes out a temporary response file and shell-executes the tool requested. Enables concurrent logging of the output of the tool.

protected:
 virtual int ExecuteTool(System::String ^ pathToTool, System::String ^ responseFileCommands, System::String ^ commandLineCommands);
protected virtual int ExecuteTool (string pathToTool, string responseFileCommands, string commandLineCommands);
abstract member ExecuteTool : string * string * string -> int
override this.ExecuteTool : string * string * string -> int
Protected Overridable Function ExecuteTool (pathToTool As String, responseFileCommands As String, commandLineCommands As String) As Integer

Parameters

pathToTool
String

The computed path to tool executable on disk

responseFileCommands
String

Command line arguments that should go into a temporary response file

commandLineCommands
String

Command line arguments that should be passed to the tool executable directly

Returns

exit code from the tool - if errors were logged and the tool has an exit code of zero, then we sit it to -1

Applies to