【问题标题】:TFS build step WriteCustomSummaryInfo with ReplaceTFS 构建步骤 WriteCustomSummaryInfo 和替换
【发布时间】:2016-04-21 15:05:25
【问题描述】:

如何在 WriteCustomSummaryInfo 步骤中运行“替换”。

我正在尝试在构建摘要中显示指向 html 报告的链接:

  • 获取我所做的放置位置:

    \tfsbuild03\temp\Dev-Deployment\Dev-Deployment_20160115.22

  • 将所有 \ 替换为 / 并在末尾附加 report.html

我认为这是这样做的方法。

我尝试了以下方法,但它不起作用:

String.Format("dotCover [Coverage Results]file:({0})/{1}", Replace(DropLocation,"\","/"), "report.html")

编辑

【问题讨论】:

    标签: tfs msbuild build-process


    【解决方案1】:

    我想通了。应该是这样的:

    String.Format("dotCover [Coverage Results]file:({0})/{1}", DropLocation.Replace("\", "/"), "report.html")
    

    【讨论】:

      猜你喜欢
      • 2023-03-31
      • 2017-05-12
      • 2023-03-07
      • 2017-03-27
      • 2018-08-19
      • 1970-01-01
      • 2011-04-25
      • 2017-04-16
      • 2017-02-01
      相关资源
      最近更新 更多