设置自定义生成步骤或生成事件输出的格式

更新:2007 年 11 月

如果正确设置了自定义生成步骤或生成事件输出的格式,则会给用户带来以下利益:

  • 在“输出”窗口中对警告和错误计数。

  • 输出出现在“任务列表”窗口中。

  • 在“输出”窗口中单击输出将显示适当的主题。

  • 在“任务列表”或“输出”窗口中启用 F1 操作。

输出的格式应该为:

{filename (line# [, column#]) | toolname} : 
  [anytext] {error | warning} code####: Localizable String
   [
      any text
   ]

其中:

  • {a | b} 是指选择 ab

  • [optional] 是可选参数

例如:

C:\sourcefile.cpp(134) : error C2143: syntax error : missing ';' before '}'

LINK : fatal error LNK1104: cannot open file 'somelib.lib'

请参见

参考

了解自定义生成步骤和生成事件