如何在只有一个项目禁用警告? [英] How to disable warnings in only one project?
本文介绍了如何在只有一个项目禁用警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有没有意见,许多警告我的解决方案的传统项目。我想没有看到这个项目的具体警告,但我希望看到相同的解决方案的其他项目的警告。
是否有可能
编辑:
我的意思是具体项目的所有警告。
解决方案
- 在Visual Studio中打开项目的属性标签
- 转到构建标签
- 设置了警告级别0
有关不同警告级别详情请见:
I have a legacy project in my solution without comments and many warnings. I want to not see warnings about this specific project but I want to see warnings of the other projects in the same solution.
Is it possible?
edit: I mean "all warnings" of specific project.
解决方案
- In Visual Studio open the project's Properties tab
- Go to the "Build" tab
- Set the "Warning Level" to 0
For details on the different warning levels see:
C# Compiler Options > /warn (Specify Warning Level)
这篇关于如何在只有一个项目禁用警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文