You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Source-generated files that use obsolete user-provided APIs will have obsoletion warnings themselves. The standard warning code can be suppressed at the start of the generated file, but if the API is obsoleted with a custom diagnostic ID, the warning cannot be easily suppressed just for that file.
To solve this, I propose to introduce a #pragma warnings disable obsolete directive that suppresses all obsoletetion warnings regardless of ID.
Context: dotnet/runtime#101738
Source-generated files that use obsolete user-provided APIs will have obsoletion warnings themselves. The standard warning code can be suppressed at the start of the generated file, but if the API is obsoleted with a custom diagnostic ID, the warning cannot be easily suppressed just for that file.
To solve this, I propose to introduce a
#pragma warnings disable obsolete
directive that suppresses all obsoletetion warnings regardless of ID.c.c. @RikkiGibson
The text was updated successfully, but these errors were encountered: