我正在为TFS构建流程工作流编写自定义活动,例如,此处的准则。
在我的C#CodeActivity .Execute()方法中,我想将文本输出到TFS build的summary information
下面的快照中。
我怎样才能做到这一点?
您应该使用该CustomSummaryInformation
对象来显示摘要消息。这是代码。希望能帮助到你。
protected override void Execute(CodeActivityContext context)
{
var summaryReport = new CustomSummaryInformation()
{
Message = "Your message",
SectionPriority = 0,
SectionHeader = "Header Name",
SectionName = "Section Name",
};
context.Track(summaryReport);
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句