许多任务最终继承自 Task 类和 ToolTask 类。 此类向派生自该类的任务添加几个参数。 本文档中列出了这些参数。
参数
下表介绍了 VCToolTask 基类的参数。
| 参数 | 说明 |
|---|---|
| ActiveToolSwitchesValues | (可选)Dictionary<string, ToolSwitch> 参数。 |
| AdditionalOptions | 可选的 string 参数。 |
| EffectiveWorkingDirectory | 可选的 string 参数。 |
| EnableErrorListRegex | 可选的 bool 参数。 默认值为 true。 |
| ErrorListRegex | 可选的 ITaskItem[] 参数。 |
| ErrorListListExclusion | 可选的 ITaskItem[] 参数。 |
| GenerateCommandLine | 可选的 string 参数。 使用 CommandLineFormat format [default = CommandLineFormat.ForBuildLog] 和 EscapeFormat escapeFormat [default = EscapeFormat.Default] 值。 |
| GenerateCommandLineExceptSwitches | 可选的 string 参数。 使用 string[] switchesToRemove、CommandLineFormat format [default = CommandLineFormat.ForBuildLog] 和 EscapeFormat escapeFormat [default = EscapeFormat.Default] 值。 |