Skip to content

[automated] Merge branch 'main' => 'net11.0' - #39636

Merged
kubaflo merged 3 commits into
net11.0from
merge/main-to-net11.0
Oct 25, 2026
Merged

kubaflo merged 3 commits into
net11.0from
merge/main-to-net11.0

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

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:

  • kubaflo

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.

merge button instructions

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.

git fetch
git checkout main
git pull --ff-only
git checkout net11.0
git pull --ff-only
git merge --no-ff main

# If there are merge conflicts, resolve them and then run git merge --continue to complete the merge
# Pushing the changes to the PR branch will re-trigger PR validation.
git push https://github.com/dotnet/maui HEAD:merge/main-to-net11.0
or if you are using SSH
git push git@github.com:dotnet/maui HEAD:merge/main-to-net11.0

After PR checks are complete push the branch

git push

Instructions for resolving conflicts

⚠️ If there are merge conflicts, you will need to resolve them manually before merging. You can do this using GitHub or using the command line.

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.

git fetch
git checkout -b merge/main-to-net11.0 origin/net11.0
git pull https://github.com/dotnet/maui merge/main-to-net11.0
(make changes)
git commit -m "Updated PR with my changes"
git push https://github.com/dotnet/maui HEAD:merge/main-to-net11.0
or if you are using SSH
git fetch
git checkout -b merge/main-to-net11.0 origin/net11.0
git pull git@github.com:dotnet/maui merge/main-to-net11.0
(make changes)
git commit -m "Updated PR with my changes"
git push git@github.com:dotnet/maui HEAD:merge/main-to-net11.0

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.

kubaflo and others added 2 commits October 25, 2026 23:22
…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/*

@dotnet-policy-service dotnet-policy-service Bot 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.

Auto-approved automated inter-branch merge.

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>
@github-actions

Copy link
Copy Markdown
Contributor Author

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 39636

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 39636"

@kubaflo

kubaflo commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

Resolved and pushed all 16 conflicts with net11.0 in ordinary merge commit a7d3838f010, on the original merge/main-to-net11.0 branch. No rebase or force-push.

  • Kept all 15 Windows Compatibility files deleted, respecting net11's intentional package removal in Remove MAUI compatibility package #35870.
  • Preserved the Windows metadata rollback from [Windows] Restore native binding metadata baseline to fix maui-pr #39622: the three invalid x:DataType annotations are removed from the current net11 CollectionView resource dictionary. Its newer Items2 styles and disabled-opacity behavior are retained. A structural XML comparison confirmed these three attribute removals are the only changes to that dictionary relative to the target.
  • Retained the target's SDK/dependency/Arcade bootstrap versions unchanged. Other metadata rollback changes merged automatically.

Validation: 201 selected managed cell/page/picker/table tests passed with native platform targets disabled. All eight changed XAML documents parsed, and git diff --check passed. No new pipeline tests were written. This macOS validation does not establish native Windows XAML compiler success; native Windows builds and actual pipeline execution remain for CI. No device/UI automation or XCTest was run.

@kubaflo
kubaflo disabled auto-merge October 25, 2026 22:32
@kubaflo
kubaflo merged commit b20250e into net11.0 Oct 25, 2026
4 of 15 checks passed
@kubaflo
kubaflo deleted the merge/main-to-net11.0 branch October 25, 2026 22:33
@github-actions github-actions Bot added this to the .NET 11.0-rc2 milestone Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant