How to disable warnings in only one project?

后端 未结 4 355
日久生厌
日久生厌 2021-01-03 19:27

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 pro

4条回答
  •  囚心锁ツ
    2021-01-03 19:35

    Each project in Visual Studio has a "treat warnings as errors" option. Go through each of your projects and change that setting:

    1. Right-click on your project, select "Properties".
    2. Click "Build".
    3. Switch "Treat warnings as errors" from "All" to "Specific warnings" or "None".

提交回复
热议问题