且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在只有一个项目禁用警告?

更新时间:2022-10-17 14:08:40


  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)