【问题标题】:How do you stop the DiaSession warning from TFS CI build when using NUnit?使用 NUnit 时如何停止来自 TFS CI 构建的 DiaSession 警告?
【发布时间】:2015-11-09 11:10:19
【问题描述】:

在使用 NUnit 时如何阻止来自 TFS CI 构建的 DiaSession 警告?

0 error(s), 1 warning(s)
Unable to create DiaSession for .... 
No source location data will be available for this assembly.

【问题讨论】:

  • 它是 Nunit TestConverter 类的一部分,他们评论说他们在 DiaSessions 上有问题,所以你会收到警告。您可以扩展 NUnit 以删除警告或抑制 msbuild nowarn上的警告?
  • 扩展 TestConverter 类以提供特定的错误编号,并在 msbuild 中抑制该编号也可能有效...

标签: continuous-integration nunit


【解决方案1】:

您需要在构建定义中的 MSBuild Arguments 中使用添加 /p:NoWarn=warningNumber。或者使用 /p:WarningLevel=0 参数来禁止所有警告。

【讨论】:

    猜你喜欢
    • 2018-12-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多