Incorrect error codes reported
See original GitHub issueVersion Used:
I’m updating Windows Forms SDK/toolset from P6 to RC1, and our builds fail with errors which we have already suppressed. E.g.:
It appears instead of CS0618
we must now be suppressing SYSLIB0011
but I had to spend time to figure it out on my own.
Likewise we have other failures, e.g.
…and only VS is telling me that I now need to suppress a different one:
Few builds:
- https://dev.azure.com/dnceng/public/_build/results?buildId=817132&view=results
- https://dev.azure.com/dnceng/public/_build/results?buildId=817156&view=results
Steps to Reproduce:
- Clone this commit: https://github.com/dotnet/winforms/commit/2427ee0140db52050535e9459384e6527610720d
- Run
.\build.cmd
- Observe multiple failures
Expected Behavior:
Errors must either correctly report codes or use the existing suppression rules.
Issue Analytics
- State:
- Created 3 years ago
- Comments:25 (25 by maintainers)
Top Results From Across the Web
Error codes in Device Manager in Windows
Lists the error codes that may be reported by Device Manager and the possible resolutions in Windows.
Read more >Diagnostic Trouble Codes - What They Mean & How to Fix ...
Code P0411 : Secondary Air Injection System Incorrect Flow Detected. Learn what Trouble Code P0411 means, the cause, and how to fix it....
Read more >A Complete Guide and List of HTTP Status Codes
A complete list of HTTP status codes with explaination of what they are, why they occur and what you can do to fix...
Read more >Jurisdiction M Part A - CERT Error: Incorrect Coding
CERT Error: Incorrect Coding ... These codes may be ICD-CM, HCPCS, CPT or modifiers. Here are issues that lead to incorrect coding:.
Read more >Desktop Underwriter Credit-related Error Codes Job Aid
111311. Credit agency error: Last name is missing or invalid. • Ensure the borrower's last name is in the last name field on...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
/+warnaserror
seems to be the problem. The minimal repro project https://github.com/dotnet/roslyn/issues/47736#issuecomment-693708428 gives an unexpectederror CS0618
when either<WarningsAsErrors>SYSLIB0011</WarningsAsErrors>
is specified or<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
is specified.Thanks to @jmarolf for helping me track this down. I suppose this bug didn’t have the chance to negatively impact more people since corefx didn’t add custom diagnostic IDs until recently.
One thing I totally forgot to mention (sorry), to start Windows Forms solution in VS you need to run:
This will restore the necessary dependencies and set env vars for VS.