代码之家  ›  专栏  ›  技术社区  ›  Seth Petry-Johnson

如何让TeamCity使用Rake runner识别msbuild编译错误

  •  11
  • Seth Petry-Johnson  · 技术社区  · 15 年前

    1. 建造 中止并被标记为失败;
    2. 日志概述
    3. 编译失败是错误的 . 我的电子邮件通知模板中的{COMPILATION_ERRORS}占位符被替换为空字符串。

    我必须做什么才能让TC识别编译错误?

    1 回复  |  直到 15 年前
        1
  •  16
  •   Seth Petry-Johnson    15 年前

    答案,如中所示 this thread on the TeamCity support forum

    msbuild /l:JetBrains.BuildServer.MSBuildLoggers.MSBuildLogger,<path to dll>
    

    dll位于TeamCity代理目录中:{agent}/plugins/dotnetplugin/bin/JetBrains.BuildServer.MSBuildLoggers.dll