VCToolTask 基类
许多任务最终继承自 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] 值。 |
另请参阅
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈