如何使用 MSBuild 抑制所有警告 [英] How to suppress all warnings using MSBuild

查看:22
本文介绍了如何使用 MSBuild 抑制所有警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将如何抑制所有警告(或至少尽可能多,因为无法抑制以 MSB 为前缀的警告 如何抑制特定的 MSBuild 警告)?

How would I suppress all warnings (or at least as many as possible since those prefixed with MSB cannot be suppressed How to suppress specific MSBuild warning)?

推荐答案

最好的方法是修复导致警告的问题.

The best way is to fix the issues that are causing the warnings.

如果您必须忽略警告(例如,您继承的项目太多,以至于看不到树木的树木),您可以尝试更改 WarningLevel 属性,http://msdn.microsoft.com/en-us/library/13b90fz7.aspx

If you must ignore the warnings (e.g. you have inherited a project with so many that you can't see the wood for the trees), you could try changing the WarningLevel property, http://msdn.microsoft.com/en-us/library/13b90fz7.aspx

这篇关于如何使用 MSBuild 抑制所有警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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