Version Used: VS 2017 15.3.5
Steps to Reproduce:
Expected Behavior:
Given that the project starts with a Class1.cs file containing unused using directives, compilation should fail.
Actual Behavior:
Compilation succeeds. The VS UI does show the IntelliSense error, however.
Attached repro project.
AnalyzerTest.zip
Confirmed. Working on a fix.
This warning is reported separately from the other ones and wasn't undergoing the filtering that applies the diagnostic options.
Note to self: branch ruleset-bug
From discussion with @sharwell this should be handled in the IDE layer rather than the compiler layer, as this diagnostic is more of a code style. Thanks
Closing in favor of #28773
This is still a bug in Visual Studio 2019 16.4.2 as of now.
@mkamoski I am not aware of a bug currently in this space. If you are experiencing an issue with this diagnostic, can you file a new issue with the details so we can investigate it?
I'm still experiencing this issue too (exactly as described in original bug report), VS2019 16.4.3
The CS8019 error is reported by IntelliSense, yet the build finishes without error.
@yohny can you file a new issue so we can investigate?
Here we go: https://github.com/dotnet/roslyn/issues/41391
Most helpful comment
I'm still experiencing this issue too (exactly as described in original bug report), VS2019 16.4.3
The CS8019 error is reported by IntelliSense, yet the build finishes without error.