我有一个带有Rake构建脚本的.NET项目。 Rake调用msbuild.exe进行实际的编译。当我使用Rake运行器配置TeamCity 5.0构建时,TC不会识别出编译错误。发生编译错误时:
我该怎么做才能让TC识别出编译错误?
最佳答案
答案如this thread on the TeamCity support forum所示,是通过“/l”开关告诉MSBuild使用特殊的TeamCity日志监听器:
msbuild /l:JetBrains.BuildServer.MSBuildLoggers.MSBuildLogger,<path to dll>
该dll随附在TeamCity代理目录中:{agent}/plugins/dotnetplugin/bin/JetBrains.BuildServer.MSBuildLoggers.dll
关于msbuild - 如何使用Rake运行程序让TeamCity识别msbuild编译错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/1883753/