-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Document IL2125 and IL3058 transitive reference compatibility warnings #50266
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
Draft
Copilot
wants to merge
6
commits into
main
Choose a base branch
from
copilot/document-new-feature
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+157
−0
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Co-authored-by: sbomer <[email protected]>
Copilot
AI
changed the title
[WIP] Add documentation for new feature
Document IL2125 and IL3058 transitive reference compatibility warnings
Dec 2, 2025
Copilot finished work on behalf of
sbomer
December 2, 2025 19:20
sbomer
reviewed
Dec 2, 2025
Co-authored-by: sbomer <[email protected]>
Co-authored-by: sbomer <[email protected]>
Co-authored-by: sbomer <[email protected]>
Co-authored-by: sbomer <[email protected]>
Copilot finished work on behalf of
sbomer
December 2, 2025 19:43
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Documents new analyzer warnings IL2125 and IL3058 introduced in dotnet/runtime#118180 for verifying transitive dependency compatibility with trimming and Native AOT.
New warning documentation:
IL2125: Referenced assembly is not annotated for trim compatibility - emitted whenVerifyReferenceTrimCompatibility=trueand a referenced assembly lacksIsTrimmablemetadataIL3058: Referenced assembly is not annotated for AOT compatibility - emitted whenVerifyReferenceAotCompatibility=trueand a referenced assembly lacksIsAotCompatiblemetadataUpdated conceptual documentation:
VerifyReferenceTrimCompatibilityproperty to trim preparation guideVerifyReferenceAotCompatibilityproperty to Native AOT overviewIsAotCompatiblemetadata was introduced in .NET 10Documentation approach:
Both properties are opt-in, allowing library authors to enforce that all dependencies explicitly declare trim/AOT compatibility:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.