Home > Blockchain >  Visual Studio 2022 - Errors and warnings - can't change Warning level
Visual Studio 2022 - Errors and warnings - can't change Warning level

Time:05-30

I'm using Microsoft Visual Studio 2022 (64-bit) - 17.2.2. When I change project properties for a .NET 6 project I cant change Errors and warnings - Warning level. My current level is 6 - Warnings from C# 10

I'm trying to set this to either 7 - Warnings from C# 11 or 9999 - All warnings. What happens is I can set the value but the value is restored to 6 - Warnings from C# 10.

enter image description here

Setting other values work as expected.

Warning Level:

Specifies the level to display for compiler warnings. Higher levels produce more warnings, and include all warnings from lower levels.

enter image description here

  • Related