Repository navigation
[automated] Merge branch 'main' => 'net11.0' - #39636
Merged
Merged
Conversation
…9622) <!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! <!-- !!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING MAIN. !!!!!!! --> ### Description of Change Fix the `maui-pr` regression introduced by #38735 (`d1588611fcec78c856a8eb7b29d583ebecf7b4f1`). Target-branch [build 1647950](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1647950) fails in Windows Debug/Release builds, Windows Debug/Release unit-test preparation, and Windows packaging with `MauiComboBoxStyle.xaml(7,42): WMC0612`, XBF `0x09C4` / `Property Not Found`. The preceding completed main build, [1646049](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1646049), succeeded. **The fix's full `maui-pr` run succeeded:** [build 1648188](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1648188), head `c5bfa05b684e6aca9d70171704067cdcb68df2eb`. Native Windows Debug/Release builds, Windows packaging, both Helix unit-test lanes, macOS builds/packaging, and the integration stage passed. The run completed in 2h 17m after the requested `/azp run`. Restore the pre-cleanup native Windows metadata baseline across Core, Controls, and the legacy Compatibility backend: - Remove the newly added native `x:DataType` annotations and `[Microsoft.UI.Xaml.Data.Bindable]` attributes. Keep all runtime bindings, converters, two-way updates, public collection/generic APIs, and `INotifyPropertyChanged` implementations unchanged. - Preserve #38735's data-context-based `CollapseWhenEmpty` bindings and equivalent title-bar `TemplateBinding`, plus its unrelated workload, Android, and APIScan warning fixes. - Remove source assertions that require the invalid metadata; retain the three existing binding-behavior checks and document the failure signatures in the canonical CI guide. This ports the Windows correction investigated in the now-closed net11.0 PR #39608, rather than repeating its successive failed attempts. That investigation exposed `WMC0612` on class annotations after removing the Picker interface annotation, `WMC9999` on overloaded table collections, `WMC0821` on open generic `AsyncValue<T>`, and invalid generated `XamlTypeInfo.g.cs`. Restoring the coherent metadata baseline reached a successful native Windows build there. This PR applies the correction to **main**, including its legacy Compatibility implementation; it does not import the unrelated dependency or test-fixture changes from #39608. Do not fix this by suppressing warnings, editing generated XAML C#, or changing cross-platform public APIs to satisfy native metadata generation. Source-only metadata checks cannot substitute for the native Windows compiler. ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Addresses the main-branch pipeline regression from #38735. No separate issue was filed. <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. --> ### Validation - `/azp run` — accepted; **full `maui-pr` passed**, [build 1648188](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1648188), tested head `c5bfa05b684e6aca9d70171704067cdcb68df2eb`. - `pwsh -NoProfile -Command '$result = Invoke-Pester -Path "eng/pipelines/arcade/windows-xaml-trimming.Tests.ps1" -Output Detailed -PassThru; if ($result.FailedCount -ne 0 -or $result.PassedCount -ne 3) { exit 1 }'` — **passed, 3/3** existing source binding-behavior checks. - Parsed all 13 changed XAML documents with PowerShell XML parsing — **passed**. - Compared all 26 changed C# files with the parent of the regressing commit — **identical**, confirming metadata-only rollback without implementation/API edits. - `git diff --name-only -- '*.cs' -z | xargs -0 dotnet format whitespace Microsoft.Maui.sln --no-restore --include --verbosity quiet` — **completed successfully**, with workspace-loading warnings. - `git diff --check` — **passed**. - No XCTest or local UI automation was run. Native Windows compilation was verified remotely, not inferred from source checks. ### Other Checks This does **not** claim that every PR check is green: - [Pester scripts](https://github.com/dotnet/maui/actions/runs/40138145162) reports **2633 passed, 3 failed**. All three failures are stale reviewer-model assertions (`CopilotPipeline.Tests.ps1`, `Review-PR.Tests.ps1`, `Review-Tests.Tests.ps1`) expecting GPT-5.6 Sol. The exact three failures were reproduced against an isolated, unchanged `main` checkout; none of their inputs are modified here. They are outside this Windows metadata fix. - Separate [device-test build 1648190](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1648190) failed in the MacCatalyst `Core Tests` Helix work item on `osx.26.arm64.open` (job `866aed1a-0ae8-48cd-a0f1-033bf3c53d27`). This is a distinct device-test failure, not the repaired native Windows build failure; its root cause has not been classified here. - Separate [UI-test build 1648189](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1648189) was still running when the requested `maui-pr` observation completed. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 30af3f0a-bcc4-4e4a-97a4-bed05029beb0
Reset patterns: - global.json - NuGet.config - eng/Version.Details.xml - eng/Versions.props - eng/common/*
Keep removed Compatibility files deleted and remove invalid template data-type annotations while preserving current net11 CollectionView resources. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
Author
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 39636Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 39636" |
Contributor
|
Resolved and pushed all 16 conflicts with
Validation: 201 selected managed cell/page/picker/table tests passed with native platform targets disabled. All eight changed XAML documents parsed, and |
kubaflo
disabled auto-merge
October 25, 2026 22:32
kubaflo
approved these changes
Oct 25, 2026
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
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.
I detected changes in the main branch which have not been merged yet to net11.0. I'm a robot and am configured to help you automatically keep net11.0 up to date, so I've opened this PR.
This PR merges commits made on main by the following committers:
Instructions for merging from UI
This PR will not be auto-merged. When pull request checks pass, complete this PR by creating a merge commit, not a squash or rebase commit.
If this repo does not allow creating merge commits from the GitHub UI, use command line instructions.
Instructions for merging via command line
Run these commands to merge this pull request from the command line.
or if you are using SSH
After PR checks are complete push the branch
Instructions for resolving conflicts
Instructions for updating this pull request
Contributors to this repo have permission update this pull request by pushing to the branch 'merge/main-to-net11.0'. This can be done to resolve conflicts or make other changes to this pull request before it is merged.
The provided examples assume that the remote is named 'origin'. If you have a different remote name, please replace 'origin' with the name of your remote.
or if you are using SSH
Contact .NET Core Engineering (dotnet/dnceng) if you have questions or issues.
Also, if this PR was generated incorrectly, help us fix it. See https://github.com/dotnet/arcade/blob/main/.github/workflows/scripts/inter-branch-merge.ps1.