ToolTask.ExecuteTool(String, String, String) 方法

定义

写出一个临时响应文件,然后通过 shell 执行请求的工具。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

参数

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

返回

Int32

该工具的退出代码 - 如果记录了错误并且该工具的退出代码为零,那么我们将其设为 -1exit code from the tool - if errors were logged and the tool has an exit code of zero, then we sit it to -1

适用于