✅ Suppressions aren't working in vs studio. What do I do?
I keep trying to select "suppress for all" and it does not at all save and make any changes. I've clicked this like 70 times now bc I keep WANTING it to work, but obviously it doesn't work. This is frustrating the hell out of me.
9 Replies
Did you think of perhaps fixing the issue instead? That guarantees the warning goes away
Yeah, I'm considering it. Trying to wrap my head around why C#8 thinks this is a good idea.
Seems dumb as f*** unless there is some optimization reason behind it.
It requires adjusting my way of thinking on pass-by-reference types.
I think you should try and fix the issue to handle null, but just to answer the question, when I click Preview Changes and Click apply, it is creating an .editorconfig file on my PC. Is it not doing that for you?
It makes nullability (almost) the same for value types and reference types, that's the reason behind that change
Actually forces you to guard against
null
s, so you don't get NullReferenceException
s as ofteniirc, it's mostly or all static compiler analysis
Yeah
The "hurr durr no BC breaks ever or the world will collapse" really made the nullability changes toothless
disable nullability for the whole project
it's not dumb, it's you providing more info to the compiler
I figured it out. Had to delete my .editorconfig file then retry the supression. It recreated the file and added it to the project and now it works.
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.