Search Issue Tracker
By Design
Votes
0
Found in
2020.3
2021.2
2021.2.10f1
2022.1
2022.2
Issue ID
1403559
Regression
No
Suppressed warning is logged to the Console when using Roslyn DiagnosticSuppression
How to reproduce:
1. Open the user's attached project
2. At the top of the Editor, go to Compilation -> Run
3. Observe the Console
Expected result: no warning is logged to the Console
Actual result: warning CS0649 is logged to the Console
Reproducible with: 2020.3.30f1, 2021.2.13f1, 2022.1.0b9, 2022.2.0a5
Could not test with: 2019.4.36f1 (error CS0117: 'ScriptCompilationSettings' does not contain a definition for 'extraScriptingDefines')
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Select Preset "None" icon changes after switching tabs
- [Android] Crash when using xxHash3 and targeting the ARMv7 Architecture with IL2CPP Scripting Backend
- GameObject reference in a Script Component becomes missing when unpacking a variant of another Prefab variant
- Project Settings vertical separator position is not synchronized with the mouse position when dragging it horizontally
- Crash on PhysicsDebugDraw::SelectFiltering::Update when entering play mode with Physics Debug window docked and unfocused
Resolution Note (2022.2.X):
https://github.com/dotnet/roslyn/blob/main/docs/compilers/Rule%20Set%20Format.md
Setting the SuppressionDescriptor to "None" will basically overrule it, and it will basically become disabled.