如何在只有一个项目禁用警告? [英] How to disable warnings in only one project?

查看:161
本文介绍了如何在只有一个项目禁用警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有没有意见,许多警告我的解决方案的传统项目。我想没有看到这个项目的具体警告,但我希望看到相同的解决方案的其他项目的警告。



是否有可能



编辑:
我的意思是具体项目的所有警告。


解决方案

  1. 在Visual Studio中打开项目的属性标签

  2. 转到构建标签

  3. 设置了警告级别0



有关不同警告级别详情请见:



C#编译器选项> /警告(指定警告级别)


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.

解决方案

  1. In Visual Studio open the project's Properties tab
  2. Go to the "Build" tab
  3. Set the "Warning Level" to 0

For details on the different warning levels see:

C# Compiler Options > /warn (Specify Warning Level)

这篇关于如何在只有一个项目禁用警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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