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

Use the BannedApiAnalyzer instead of the LinqPoison mechanism to ban Linq in the managed type system #86673

Merged
merged 3 commits into from
May 24, 2023

Conversation

jkoritzinsky
Copy link
Member

Instead of using a symbol collision with a comment block to stop people from using LINQ in the managed type system, use the BannedApiAnalyzer to ban the Linq namespace in a more standard fashion. Also update the BannedApiAnalyzer package to a version that has namespace support to allow us to enforce it (it was recently merged in).

@ghost
Copy link

ghost commented May 23, 2023

Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
See info in area-owners.md if you want to be subscribed.

Issue Details

Instead of using a symbol collision with a comment block to stop people from using LINQ in the managed type system, use the BannedApiAnalyzer to ban the Linq namespace in a more standard fashion. Also update the BannedApiAnalyzer package to a version that has namespace support to allow us to enforce it (it was recently merged in).

Author: jkoritzinsky
Assignees: -
Labels:

area-NativeAOT-coreclr

Milestone: -

@jkoritzinsky
Copy link
Member Author

OSX failures are unrelated.

@jkoritzinsky jkoritzinsky merged commit ba97cf8 into dotnet:main May 24, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Jun 24, 2023
@jkoritzinsky jkoritzinsky deleted the banned-linq branch March 22, 2024 01:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants