Skip to content
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

Adds support to Orleans.Analyzers for generic attributes #8352

Merged
merged 2 commits into from Mar 21, 2023
Merged

Adds support to Orleans.Analyzers for generic attributes #8352

merged 2 commits into from Mar 21, 2023

Conversation

michaelmccord
Copy link
Contributor

@michaelmccord michaelmccord commented Mar 20, 2023

Adds support to Orleans.Analyzers for generic attributes a new feature in C# 11.0.

Currently, if you use a generic attribute in your code, the the orleans analyzers will fail during the analysis phase and throw a "NotSupportedException" when encountering a usage of a generic attribute. This causes a AD0001 analysis error to appear.

A temporary work around for this is to simply use <NoWarn>AD0001</NoWarn> on the project. However, this can potentially hide other base level analyzer exception errors and is therefore not a long-term work around.

Microsoft Reviewers: Open in CodeFlow

@michaelmccord
Copy link
Contributor Author

michaelmccord commented Mar 21, 2023

@dotnet-policy-service agree

@michaelmccord
Copy link
Contributor Author

michaelmccord commented Mar 21, 2023

@ReubenBond -- I have fixed an error here in the analyzers (detailed in the description) and I believe I have also fixed an intermittent error in a unit test due to a race condition that was blocking the build of my original fix in the analyzers.

@ReubenBond ReubenBond self-assigned this Mar 21, 2023
@ReubenBond
Copy link
Member

Thank you, @michaelmccord!

@ReubenBond ReubenBond merged commit 4e36817 into dotnet:main Mar 21, 2023
18 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Dec 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants