Skip to content

[release/10.0.1xx] [dotnet-linker] Escape explicit interface member names - #26987

Merged
rolfbjarne merged 1 commit into
release/10.0.1xxfrom
dev/rolf/backport-pr-26529-release/10.0.1xx-2026-10-22
Oct 22, 2026
Merged

rolfbjarne merged 1 commit into
release/10.0.1xxfrom
dev/rolf/backport-pr-26529-release/10.0.1xx-2026-10-22

Conversation

@rolfbjarne

Copy link
Copy Markdown
Member

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.

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
Copilot AI balanced review requested due to automatic review settings October 22, 2026 19:39
@rolfbjarne
rolfbjarne requested a review from dalexsoto as a code owner October 22, 2026 19:39
@rolfbjarne rolfbjarne added backported ready-to-review This PR is ready to review/merge. labels Oct 22, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 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

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

✅ API diff for current PR / commit

NET (empty diffs)

✅ API diff vs stable

NET (empty diffs)

ℹ️ Generator diff

Generator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes)

Pipeline on Agent
Hash: 32573de0c862dbf6fa801c9bd285c66f92d394aa [PR build]

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

🚀 [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
✅ cecil: All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (iOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (MacCatalyst): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (macOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (Multiple platforms): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (tvOS): All 1 tests passed. Html Report (VSDrops) Download
✅ framework: All 2 tests passed. Html Report (VSDrops) Download
✅ fsharp: All 4 tests passed. Html Report (VSDrops) Download
✅ generator: All 5 tests passed. Html Report (VSDrops) Download
✅ interdependent-binding-projects: All 4 tests passed. Html Report (VSDrops) Download
✅ introspection: All 4 tests passed. Html Report (VSDrops) Download
✅ linker (iOS): All 15 tests passed. Html Report (VSDrops) Download
✅ linker (MacCatalyst): All 15 tests passed. Html Report (VSDrops) Download
✅ linker (macOS): All 21 tests passed. Html Report (VSDrops) Download
✅ linker (tvOS): All 15 tests passed. Html Report (VSDrops) Download
✅ monotouch (iOS): All 19 tests passed. Html Report (VSDrops) Download
✅ monotouch (MacCatalyst): All 18 tests passed. Html Report (VSDrops) Download
✅ monotouch (macOS): All 21 tests passed. Html Report (VSDrops) Download
✅ monotouch (tvOS): All 19 tests passed. Html Report (VSDrops) Download
✅ msbuild: All 2 tests passed. Html Report (VSDrops) Download
✅ sharpie: All 1 tests passed. Html Report (VSDrops) Download
✅ windows: All 3 tests passed. Html Report (VSDrops) Download
✅ xcframework: All 4 tests passed. Html Report (VSDrops) Download
✅ xtro: All 1 tests passed. Html Report (VSDrops) Download

macOS tests

✅ Tests on macOS Sonoma (14): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Sequoia (15): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Tahoe (26): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Golden Gate (27): All 5 tests passed. Html Report (VSDrops) Download

Linux Build Verification

✅ Linux build succeeded

Pipeline on Agent
Hash: 32573de0c862dbf6fa801c9bd285c66f92d394aa [PR build]

@rolfbjarne
rolfbjarne merged commit 1f4f4f5 into release/10.0.1xx Oct 22, 2026
56 checks passed
@rolfbjarne
rolfbjarne deleted the dev/rolf/backport-pr-26529-release/10.0.1xx-2026-10-22 branch October 22, 2026 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backported ready-to-review This PR is ready to review/merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multiple IL2037 warnings when publishing Maui app with PublishAot=true

4 participants