使用NUnit时,如何停止来自TFS CI构建的DiaSession警告? [英] How do you stop the DiaSession warning from TFS CI build when using NUnit?

查看:75
本文介绍了使用NUnit时,如何停止来自TFS CI构建的DiaSession警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用NUnit时如何从TFS CI构建中停止DiaSession警告?

How do you stop the DiaSession warning from TFS CI build when using NUnit?

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


推荐答案

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

You need to use add the /p:NoWarn=warningNumber in MSBuild Arguments in the build definition. Or use the /p:WarningLevel=0 argument to suppress all warnings.

这篇关于使用NUnit时,如何停止来自TFS CI构建的DiaSession警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆