Implement compiler flag /warnversion #45702
Labels
4 - In Review
A fix for the issue is submitted for review.
Area-Compilers
Feature Request
Language-C#
New Feature - Warning Waves
Warning Waves
Milestone
From #45701
Implement a
/warnversion:version
command-line switchOpen Question: do we bump the number for .NET releases or language releases? Today they will be the same but what if that changes?
/warnversion
. If the warning is more recent then it isn't emitted, and can't be controlled by/warnaserror
, and#pragma warning restore
cannot enable it. For all other subsystems in the compiler, it's as if this warning doesn't exist. If you/warnaserror:WRNID
one of these warnings, it silently has no effect./warnversion
specifies a version more recent than the current compiler, then the compiler silently uses the most recent version it can. If no/warnversion
is specified then none of the warning-wave warnings will be produced.The text was updated successfully, but these errors were encountered: