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

Fix remaining ILLink warnings in System.Reflection #45984

Merged
merged 7 commits into from
Dec 16, 2020

Conversation

eerhardt
Copy link
Member

This removes the remaining ILLink warnings from System.Private.CoreLib that are not in one of the following areas:

  1. COM support
  2. EventSource / System.Diagnostics.Tracing
  3. StartupHookProvider
  4. System.Resources

Contributes to #45623

@eerhardt
Copy link
Member Author

I believe I have addressed all feedback. Please take another look.

Compat issues with assembly netstandard:
CannotRemoveAttribute : Attribute 'System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute' exists on 'System.Delegate.CreateDelegate(System.Type, System.Type, System.String)' in the contract but not the implementation.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Anipik @safern @ericstj - the RequiresUnreferencedCodeAttribute was introduced in net5.0. I'm not sure how it got into mscorlib and netstandard. Did we update those in the 5.0 timeframe?

Also, can you take a look at this change and tell me if it looks correct?

@eerhardt
Copy link
Member Author

The CI is green. I’ll merge this later today unless I hear anymore feedback.

@eerhardt eerhardt merged commit 3e1e1c1 into dotnet:master Dec 16, 2020
@eerhardt eerhardt deleted the FixReflectionMoreWarnings branch December 16, 2020 03:33
akoeplinger added a commit to dotnet/sdk that referenced this pull request Dec 17, 2020
dotnet-maestro bot added a commit to dotnet/sdk that referenced this pull request Dec 17, 2020
[master] Update dependencies from dotnet/runtime


 - Remove unnecessary reference to System.Text.Json

 - Update linker baseline

 - Update runtime dependency

 - Adjust ILLink warning baseline

dotnet/runtime#44409 caused ILLink warning changes
that are reflected in the output of linking 'hello, world'.

 - Merge remote-tracking branch 'upstream/master' into darc-master-4a612234-0bdd-45db-8d7f-6c5bed075213

 - Fix ILLink_verify_analysis_warnings_hello_world_app

 - Remove ILLink warnings that were fixed by dotnet/runtime#45984
@ghost ghost locked as resolved and limited conversation to collaborators Jan 15, 2021
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.

5 participants