-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to declare all CS* warnings as errors within .editorconfig #52051
Comments
Note that this is not correct in the broader scope. The property has always affected all messages (including messages produced by analyzers) outside of one edge case that only existed for a limited time. 16.9 restored the original behavior of this flag in the context of the edge case. |
This appears to be a duplicate of #16535 |
Yes, I agree. :-) Once my initial anger and confusion had lifted, I understood why this got changed/fixed. However, if one uses any kind of stable and therefore predictable system, one adjust one self to it. Or in other words, one starts to dependent on it. Change is then perceived as somewhat of an evil thing. So some kind of warning would have been nice. And we would have been able to postpone the usage of VS 16.9. until we got our builds adjusted. Looking at #16535, yes this is kind of a duplicate. Going forward I will most likely remove all the usage of Is there a way already? |
Something like
would be nice. |
That issue seems to cover treating the diagnostics differently depending on the context: compilation vs. VS analysis. This issue is more about how to make blanket exclusions. Where are you seeing the link here that I'm missing?
@mavasani @chsienki is there a mechanism like this or a feature tracking one? |
We have had similar globbing based diagnostic configuration requests in the past: #16535 (comment) |
Closing this issue as we've seen no reply to the request for more information. If you are able to get the requested information, please add it to the issue and we will retriage it. |
I am missing the announcement of a major braking change in Summary of What's New in this Release of Visual Studio 2019 version 16.9.0.
#43051 broke hundreds of solution builds over thousands of projects for us. :-(
TreatWarningsAsErrors
has changed its scope. In the past it only ever effected CS* messages. Now it affects all others (SA*, CA*, IDE*, ...) as well. We are actually expecting the project based.editorconfig
to override the more general rules of MsBuild.And still I am grateful that is has changed. In the past I was always wondering why
TreatWarningsAsErrors
did not affect all warnings and things likeStyleCopTreatErrorsAsWarnings
orCodeAnalysisTreatWarningsAsErrors
had to be used.To repair our builds I will need to remove all
TreatWarningsAsErrors
from everywhere and only make use of the.editorconfig
to tailor project individual settings. Can someone point me to where I can find a way to declare all CS* warnings as errors without listing each single one in the.editorconfig
?The text was updated successfully, but these errors were encountered: