我为我的项目定制了默认发布构建模板。
我已定制构建模板以在构建失败时发送电子邮件。
我现在收到的消息:
编译状态:失败。
构建定义:TestDefinition
构建输出:TestDefinition _20150303.1(\ drop \ TestDefinition _20150303.1)
我想在电子邮件中添加Build摘要。所以我会得到类似的东西:
我想要的消息:
Compilation Status : Failed. Build Definition : TestDefinition Build Output : TestDefinition _20150303.1 (\\drop\TestDefinition _20150303.1) Build Summary: Summary Release | Any CPU 5 error(s), 0 warning(s) $/tfs/Test.sln - 5 error(s), 0 warning(s), View Log File ! xxxxxx ! xxxxxx ! xxxxxx ! xxxxxx ! xxxxxx 1 projects/solutions compiled No Test Results No Code Coverage Results Other Errors and Warnings 1 error(s), 0 warning(s) ! Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.