-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Keep MemberNotNullAttribute in sync for src <-> ref #66086
Conversation
Note regarding the This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change. |
Tagging subscribers to this area: @dotnet/area-infrastructure-libraries Issue DetailsContributes to #58163 Enable ApiCompat protection for the MemberNotNull attribute.
|
Enable ApiCompat protection for the MemberNotNull attribute.
eeeb97a
to
0bf3148
Compare
Why are we doing this? It would only be relevant if the field in question was public/protected; I don't believe any of these are. This is leaking implementation details into the ref. |
See #66090 and please contribute to that discussion. |
This is just noise in the ref.cs files, and creates situations which violate the "you shouldn't be changing this file without an appropriate api-approved issue" rule that goes along with them. Whatever tooling we find ourselves using now or in the future can't put these in these files. If we use roslyn to output these files as source, we can post-process them. But, as @stephentoub points out in the discussion issue, we don't want them in the ref.dll, either. So, until/unless we can get knobs in Roslyn to control that, our best Roslyn-powered flow would be to output the .cs, post-process it, and check it in.. then build that. Basically what we have right now with GenAPI (except we get to stop adding in language feature analysis). |
Thanks for taking the time to share your feedback Jeremy. |
Contributes to #58163
Enable ApiCompat protection for the MemberNotNull attribute.