ToolTask.ExecuteTool(String, String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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