Skip to content

[msbuild] Renumber duplicate error - #26566

Merged
rolfbjarne merged 4 commits into
mainfrom
dev/rolf/E7185
Sep 8, 2026
Merged

[msbuild] Renumber duplicate error#26566
rolfbjarne merged 4 commits into
mainfrom
dev/rolf/E7185

Conversation

@rolfbjarne

@rolfbjarne rolfbjarne commented Sep 4, 2026

Copy link
Copy Markdown
Member
  • Renumber duplicate errors.
  • Add a test to verify there are no duplicate entries, and that entries are sorted.
  • Sort entries so that the new test passes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings September 4, 2026 16:53
@rolfbjarne
rolfbjarne requested a review from mauroa as a code owner September 4, 2026 16:53

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 renumbering is consistent across code and resources and eliminates the duplicate error code without altering runtime behavior beyond the diagnostic ID.

Pull request overview

This PR resolves a duplicate MSBuild error code by renumbering the runtimeconfig JSON-root validation message from E7185 to E7188, ensuring each MSBStrings code maps to a single message across tasks.

Changes:

  • Update MergeRuntimeConfigFiles to log MSBStrings.E7188 when the main runtimeconfig file isn’t a valid JSON object.
  • Move the corresponding resource string in MSBStrings.resx from E7185 to E7188 to eliminate the duplicate key.
File summaries
File Description
msbuild/Xamarin.MacDev.Tasks/Tasks/MergeRuntimeConfigFiles.cs Switches the logged error code to the new unique E7188 for invalid runtimeconfig root JSON.
msbuild/Xamarin.Localization.MSBuild/MSBStrings.resx Renumbers the resource entry to E7188 so the error code is no longer duplicated.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread msbuild/Xamarin.Localization.MSBuild/MSBStrings.resx
@rolfbjarne
rolfbjarne enabled auto-merge (squash) September 4, 2026 17:20
@rolfbjarne rolfbjarne added the ready-to-review This PR is ready to review/merge. label Sep 4, 2026
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

dalexsoto
dalexsoto previously approved these changes Sep 7, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 11edc6d7-7ba5-4ef5-9f80-5bb7d0db7540
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 11edc6d7-7ba5-4ef5-9f80-5bb7d0db7540
@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: b6fb345e13c3ea772a8bebf1e23052fb714e6a5f [PR build]

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

🚀 [CI Build #b6fb345] Test results 🚀

Test results

✅ All tests passed on VSTS: test results.

🎉 All 264 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 7 tests passed. Html Report (VSDrops) Download
✅ linker (iOS): All 31 tests passed. Html Report (VSDrops) Download
✅ linker (MacCatalyst): All 31 tests passed. Html Report (VSDrops) Download
✅ linker (macOS): All 21 tests passed. Html Report (VSDrops) Download
✅ linker (tvOS): All 31 tests passed. Html Report (VSDrops) Download
✅ monotouch (iOS): All 25 tests passed. Html Report (VSDrops) Download
✅ monotouch (MacCatalyst): All 25 tests passed. Html Report (VSDrops) Download
✅ monotouch (macOS): All 20 tests passed. Html Report (VSDrops) Download
✅ monotouch (tvOS): All 25 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

Linux Build Verification

Linux build succeeded

Pipeline on Agent
Hash: b6fb345e13c3ea772a8bebf1e23052fb714e6a5f [PR build]

@rolfbjarne
rolfbjarne merged commit ba4d668 into main Sep 8, 2026
54 checks passed
@rolfbjarne
rolfbjarne deleted the dev/rolf/E7185 branch September 8, 2026 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] Duplicate E7187 resource breaks SupportedOSPlatformVersionWithWhitespace

4 participants