Team City .NET 通过 MSBuild 复制 Finder Build Runner
我已经在这方面花了几个小时了,现在我开始认真思考了。
在 TeamCity 中,我试图让 MSBuild 来运行 .NET 重复项查找器,这很简单。
<Target Name="Duplication" DependsOnTargets="CreateSVNStats">
<MakeDir Directories="$(BuildDir)\test\" Condition="!Exists('$(BuildDir)\test')" />
<Exec Command=""C:\buildAgent\plugins\dotnet-dupfinder\bin\dupfinder.exe" --show-stats --show-text --discard-cost=70 -i **/*.vb -o $(BuildDir)\test\result.xml" ContinueOnError="false"/>
</Target>
我有 result.xml,这就是让 result.xml 显示在 teamcity 中。
我尝试添加一个包含 result.xml 的自定义选项卡,但它不起作用。
想知道是否有人知道 .NET Duplicates Finder Build Runner xlst 在哪里,以便我可以正确格式化 Result.xml 文件并显示它。
谢谢
I have been at this for a couple of hours now and its beginning to do my head in.
Within TeamCity am trying to get an MSBuild to run the .NET Duplicates Finder, this was the easy bit.
<Target Name="Duplication" DependsOnTargets="CreateSVNStats">
<MakeDir Directories="$(BuildDir)\test\" Condition="!Exists('$(BuildDir)\test')" />
<Exec Command=""C:\buildAgent\plugins\dotnet-dupfinder\bin\dupfinder.exe" --show-stats --show-text --discard-cost=70 -i **/*.vb -o $(BuildDir)\test\result.xml" ContinueOnError="false"/>
</Target>
I have the result.xml that this what am stuck on is getting the result.xml to be displayed in teamcity.
I have tried to add a custom tab with the result.xml in it and it doesn't work.
was wondering if anyone knew where the .NET Duplicates Finder Build Runner xlst is so i can format the Result.xml file correctly and display it.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我对格式化 result.xml 文件没有任何想法,但您可以升级到 TeamCity 6 吗?使用 TC6,您可以使用多个构建步骤,例如使用 msbuild 运行构建,然后运行重复项查找器 (.Net),结果将显示在相同的构建配置下。
I don't have any ideas about formatting the result.xml file but can you upgrade to TeamCity 6? With TC6 you can use multiple build steps, e.g. run your build using msbuild then run a Duplicates Finder (.Net), the results will both be displayed under the same build configuration.
Team City 8 附带内置重复查找器:http://confluence .jetbrains.com/display/TCD8/Duplicates+Finder+(.NET)
也可能在早期版本中可用,尚未检查。
Team City 8 comes with built in duplicate finder: http://confluence.jetbrains.com/display/TCD8/Duplicates+Finder+(.NET)
Might be available in earlier versions too, haven't checked.