Repository navigation
[release/10.0.1xx] [dotnet-linker] Escape explicit interface member names - #26987
Conversation
Use documentation-comment escaping for explicit-interface properties and events when generating DynamicDependency attributes. This prevents first-build IL2037 warnings when the member name contains dots. Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/3057591. Co-authored-by: Copilot <[email protected]> Copilot-Session: a6097bb2-1e91-4dd7-ab9b-fa4a7ab070a0
There was a problem hiding this comment.
🟢 Approval recommended
The narrow fix follows the existing escaping pattern and includes targeted regression coverage, with no unresolved findings.
No open issues 🎉
What changed in this PR
Backports #26529 to release/10.0.1xx, correcting explicit-interface member names in generated DynamicDependency attributes to prevent first-build IL2037 warnings.
Changes:
- Adds documentation-comment escaping for property and event names.
- Uses the escaped signatures when preserving all members.
- Adds regression coverage for explicit-interface properties and events across all four Apple platforms.
| File | Description |
|---|---|
| tools/dotnet-linker/DocumentionComments.cs | Adds property and event signature helpers and dispatch. |
| tools/dotnet-linker/AppBundleRewriter.cs | Uses escaped signatures in preservation attributes. |
| tests/assembly-preparer/ApplyPreserveAttributeTests.cs | Verifies escaped signatures for both member kinds. |
Review effort: Balanced
✅ API diff for current PR / commitNET (empty diffs)✅ API diff vs stableNET (empty diffs)ℹ️ Generator diffGenerator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes) Pipeline on Agent |
🚀 [CI Build #32573de] Test results 🚀Test results✅ All tests passed on VSTS: test results. 🎉 All 200 tests passed 🎉 Tests counts✅ assembly-processing: All 1 tests passed. Html Report (VSDrops) Download macOS tests✅ Tests on macOS Sonoma (14): All 5 tests passed. Html Report (VSDrops) Download Linux Build VerificationPipeline on Agent |
Use documentation-comment escaping for explicit-interface properties and events when generating DynamicDependency attributes. This prevents first-build IL2037 warnings when the member name contains dots.
Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/3057591.
Copilot-Session: a6097bb2-1e91-4dd7-ab9b-fa4a7ab070a0
Backport of #26529.