-
Notifications
You must be signed in to change notification settings - Fork 466
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
RS2002 reported after updating to .NET SDK 6.0.200 #5890
Comments
atifaziz
added a commit
to atifaziz/docopt.net
that referenced
this issue
Feb 19, 2022
@atifaziz This is a known issue currently. You'll have to avoid target-typed new for the |
atifaziz
pushed a commit
to docopt/docopt.net
that referenced
this issue
Feb 19, 2022
- Reverts "Suppress warning RS2002 (possible regression in .NET SDK 6.0.200)" (or commit 1a72369) from PR #161. - Avoids target-typed new for "DiagnosticDescriptor" as workaround to issue dotnet/roslyn-analyzers#5890.
bash
referenced
this issue
in polyadic/funcky
Apr 16, 2022
bash
referenced
this issue
in polyadic/funcky
Apr 20, 2022
brandonh-msft
added a commit
to dotnet/upgrade-assistant
that referenced
this issue
May 10, 2022
brandonh-msft
added a commit
to dotnet/upgrade-assistant
that referenced
this issue
May 10, 2022
brandonh-msft
added a commit
to dotnet/upgrade-assistant
that referenced
this issue
May 10, 2022
atifaziz
added a commit
to atifaziz/Transplator
that referenced
this issue
Nov 11, 2022
This is to avoid the following regression: dotnet/roslyn-analyzers#5890
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Analyzer
Diagnostic ID: RS2002 (Rule '…' is part of the next unshipped analyzer release, but is not a supported diagnostic for any analyzer)
Describe the bug
After updating to .NET SDK 6.0.200, my project with a C# source generator is producing RS2002 errors. The same project builds when compiled with the previous .NET SDK version 6.0.102 so there seems to be some sort of regression introduced.
Steps To Reproduce
09d814b987cc10d1de186a7a2ef33e90b9cef918
(the commit at time of reporting this issue)dotnet build
The above steps can be exercised with the following Docker command-line:
Expected behavior
Expected the build to succeed for all target frameworks when using .NET SDK 6.0.200.
Actual behavior
The following errors are emitted:
Additional context
When using the previous version of the SDK (6.0.102), the build succeeds for the exact same commit:
If I delete the
AnalyzerReleases.*.md
files then the build succeeds too.The text was updated successfully, but these errors were encountered: