Skip to content

[automated] Merge branch 'net11.0' => 'release/11.0.1xx-preview7' - #36923

Merged
kubaflo merged 22 commits into
release/11.0.1xx-preview7from
merge/net11.0-to-release/11.0.1xx-preview7
Jul 30, 2026
Merged

kubaflo merged 22 commits into
release/11.0.1xx-preview7from
merge/net11.0-to-release/11.0.1xx-preview7

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

I detected changes in the net11.0 branch which have not been merged yet to release/11.0.1xx-preview7. I'm a robot and am configured to help you automatically keep release/11.0.1xx-preview7 up to date, so I've opened this PR.

This PR merges commits made on net11.0 by the following committers:

  • kubaflo
  • Copilot
  • StephaneDelcroix
  • PureWeen
  • NafeelaNazhir
  • github-actions[bot]
  • mattleibow
  • devanathan-vaithiyanathan
  • NirmalKumarYuvaraj
  • Vignesh-SF3580

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 net11.0
git pull --ff-only
git checkout release/11.0.1xx-preview7
git pull --ff-only
git merge --no-ff net11.0

# 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/net11.0-to-release/11.0.1xx-preview7
or if you are using SSH
git push git@github.com:dotnet/maui HEAD:merge/net11.0-to-release/11.0.1xx-preview7

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/net11.0-to-release/11.0.1xx-preview7'. 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/net11.0-to-release/11.0.1xx-preview7 origin/release/11.0.1xx-preview7
git pull https://github.com/dotnet/maui merge/net11.0-to-release/11.0.1xx-preview7
(make changes)
git commit -m "Updated PR with my changes"
git push https://github.com/dotnet/maui HEAD:merge/net11.0-to-release/11.0.1xx-preview7
or if you are using SSH
git fetch
git checkout -b merge/net11.0-to-release/11.0.1xx-preview7 origin/release/11.0.1xx-preview7
git pull git@github.com:dotnet/maui merge/net11.0-to-release/11.0.1xx-preview7
(make changes)
git commit -m "Updated PR with my changes"
git push git@github.com:dotnet/maui HEAD:merge/net11.0-to-release/11.0.1xx-preview7

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.

NafeelaNazhir and others added 21 commits July 28, 2026 16:15
<!-- 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!

### Description of Change

On iOS 26, the picker dialog's action button label changed from
**"Done"** to **"selected"**, which broke the `Issue34971` UI test that
hard-coded the `"Done"` accessibility id when dismissing the `Picker`
dialog. This PR updates the test to dynamically resolve the correct
button label based on the iOS version under test, using the existing
`HelperExtensions.IsIOS26OrHigher` helper.

**Changes:**
- Added a `doneButton` computed property in `Issue34971` that returns
`"selected"` on iOS 26+ and `"Done"` otherwise (via `App is AppiumIOSApp
iosApp && HelperExtensions.IsIOS26OrHigher(iosApp)`).
- Updated `App.WaitForElement`/`App.Tap` calls in `CloseOpenedPicker` to
use this computed value instead of the hard-coded `"Done"` string.

**Issue Fixed**
 Fixes #36857
> [!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!

### Description

XAML Incremental Hot Reload (XIHR) was enabled **by default for Debug
builds** on the net11.0 branch, which is causing issues. This PR makes
XIHR **opt-in** instead of on-by-default.

### Changes

- `Microsoft.Maui.Controls.targets`: `EnableMauiIncrementalHotReload`
now defaults to `false` unless the developer explicitly sets it to
`true`. Removed the `Configuration == 'Debug'` branch that defaulted it
to `true`.
- Legacy XAML Hot Reload remains the default fallback
(`MauiXamlHotReload` stays `Legacy` when XIHR is off).
- Updated a stale comment in `MSBuildTests.cs` that described XIHR as
"on by default in Debug".

### Notes

- The runtime feature switch default
(`IsIncrementalHotReloadEnabledByDefault`) is already `false`, so this
change makes the MSBuild default coherent with the runtime default
end-to-end.
- To opt back in, set
`<EnableMauiIncrementalHotReload>true</EnableMauiIncrementalHotReload>`
in the project.
- Existing XIHR unit tests set the flag explicitly and are unaffected.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 78048f76-1e94-4d6a-b306-7d8c74ddea9f
…enderer and Handler code paths (#36328)

> [!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!

### Summary
Adds Android device test coverage for the Handler-based Shell, Modal,
and Window implementations alongside the existing Renderer-based tests,
allowing both Android implementations to run in CI. Also fixes a bottom
navigation menu update issue in TabbedViewManager.cs that was uncovered
while adding this coverage.

### Changes

- Added RendererHandlerVariant.cs to define shared [Trait] constants
(AndroidShellRenderer and AndroidShellHandler) for identifying Renderer
and Handler test variants.
- Updated xUnitCustomizations.cs to read the Variant trait (Android
only) and prefix test display names with [Renderer] or [Handler], making
it easy to identify the implementation that failed in CI.
- Updated ShellTests, ModalTests, WindowTests, ShellFlyoutTests,
ShellTabBarTests, and their Android/iOS partials to make the required
setup methods virtual and tag the existing tests with the Renderer
trait. This allows the same test implementations to be reused by the
Handler subclasses instead of duplicating them.
- Added ShellHandlerSubclasses.Android.cs, which contains
ShellHandlerTests_Shell, ModalHandlerTests, and WindowHandlerTests.
These subclasses reuse the existing test implementations while
registering the Handler implementation on Android and are tagged with
the Handler trait.

### Source Fix – TabbedViewManager.cs
**Issue:**
SetupBottomNavigationView() called menu.Clear() during tab updates,
recreating IMenuItem instances. The Handler-based tests validate menu
item identity, which caused the tests to fail.
**Fix:**
Updated the menu setup logic to use
BottomNavigationViewUtils.SetupMenu(), which updates existing menu items
instead of recreating them.

### Test Fix –
PushingNavigationPageModallyWithShellShowsToolbarCorrectly
**Issue:**
The existing GetPlatformToolbar() helper supported ShellRenderer but not
ShellHandler. In the Handler implementation, the toolbar is hosted
within an outer CoordinatorLayout, so the existing lookup logic did not
work.
**Fix:**
Added an IsBackButtonVisible helper and a GetShellHandlerToolbar()
helper to locate the toolbar through the nested CoordinatorLayout
hierarchy.
…apper (#34426)

> [!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!
   
 ### Root Cause
   
The MAUI handler lifecycle calls `ConnectHandler` before the property
mappers run. When a developer sets a custom `WebViewClient` in
`ConnectHandler`, the subsequent execution of `MapWebViewClient`
(triggered by the mapper pipeline) would call
`platformView.SetWebViewClient(new MauiWebViewClient(...))`, silently
discarding the custom client. Since `MapWebViewClient` and
`MapWebChromeClient` serve no purpose beyond initial setup — they are
not responding to any virtual view property change — registering them in
the mapper was incorrect. Moving client creation to
`CreatePlatformView()` and removing them from the mapper pipeline
ensures the default clients are set once, before `ConnectHandler` runs,
allowing developers to override them reliably.
   

### Description of Change
   
On Android, `WebViewHandler` registered `MapWebViewClient` and
`MapWebChromeClient` as property mapper entries. These mappers created
new `MauiWebViewClient`/`MauiWebChromeClient` instances and set them on
the platform view every time they ran — **after** `ConnectHandler` was
called. This meant any custom `WebViewClient` set by users in
`ConnectHandler` (e.g., to intercept navigation via
`ShouldOverrideUrlLoading`) would be silently replaced by MAUI's default
client.
   
   **Changes:**
- Removed `MapWebViewClient` and `MapWebChromeClient` mapper methods
entirely
- Default clients are now created **once** in `CreatePlatformView()` and
stored as private fields (`_webViewClient`, `_webChromeClient`)
- `DisconnectHandler` uses the stored field references directly for
`Disconnect()` and `Dispose()`, rather than casting from the platform
view
- Users can now safely override the `WebViewClient` in `ConnectHandler`
without MAUI replacing it
   
   ### Issues Fixed
   
   Fixes #34392

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
…lies (#34884)

<!-- 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!

## Summary

Escalates the code-review skill's **Blast Radius Assessment** so it also
fires for behavioral changes to .NET MAUI's frequently-regressed
component families, and defines what a reviewer should actually do when
the change is prose rather than code.

**Scope: one file, `.github/skills/code-review/SKILL.md`.** No eval,
test, or product code changes.

> ⚠️ **This description was previously inaccurate.** It described adding
3 scenarios to `.github/skills/code-review/tests/eval.yaml` (6 → 9),
`expect_activation: false` flags, and a changelog header. None of that
is in this PR — and none of it exists in the repo: `eval.yaml` was
deleted when the suite migrated to Vally (`ee47f113d5`),
`expect_activation` appears nowhere, and the cited `review-rules.md`
does not exist. Rewritten to match the diff.

### Changes

**Step 6 — Blast Radius Assessment**
- Extends the mandatory Blast-Radius + Failure-Mode escalation to the
eight frequently-regressed families: CollectionView, CarouselView,
Image/Graphics, Theme/Style, Gesture/Tap, Button/Entry, Toolbar,
Shell/TabBar. The list is stated inline and is sufficient on its own;
`.github/agents/maui-expert-reviewer.md`'s `Frequently Regressed
Components` table mirrors it with per-family risk areas and is read for
that detail when present.
- Forbids claiming the Step 2 expert reviewer's Regression Prevention
dimension "fired." Its output is findings-only, so an empty result
cannot distinguish *ran and found nothing* from *never ran* — the
reviewer runs the probes itself either way.
- Carves out genuinely inert prose, but defines what is **not** inert
(public API docs, analyzer/compiler directives, agent-instruction files
this repo executes, comments encoding a precondition) and gives those
changes probes that are actually answerable — the contract the text
encodes — rather than routing them into runtime questions about startup
ordering and `PlatformView` nullity.

**Step 1 — retrieval robustness**
- A failed or unauthenticated retrieval command is a fact about one
tool, not about the review. Directs a retry through another read-only
route instead of asking the caller to paste the diff.

**Review output template**
- The Blast Radius gloss said infrastructure/handler/platform only, so a
reviewer following the template could omit the section for either
trigger added here.

### Why the wording is load-bearing

`SKILL.md` is an executable agent-instruction file *and* is overlaid
into eval fixtures, so edits here are prompt changes with measurable
behavior. That was demonstrated during this PR: an earlier revision
naming `review_input` as the remedy for a deficient environment taught
the agent that a failed `gh` call meant it should stop and ask the user
to paste the diff, dropping the `happy-path-code-review-request`
stimulus from 3/3 to 0/3. The Step 1 change above targets the residual
bail.

### Known gaps

- **No eval stimulus exercises this text.** Verified: no file under
`tests/*.vally.yaml` references any of the eight families, `Frequently
Regressed`, or the prose-inertness rule. A future change could invert
this guidance and the suite would still report green. Closing this needs
a fixture plus grader thresholds and is proposed as follow-up rather
than bundled here.
- One `happy-path` trial still bails (2/3 vs baseline 3/3). With n=3,
and the baseline itself having bailed 1/3 on an earlier run, this is not
yet distinguishable from flake.

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: a9f85d71-55b4-4713-b900-079bf36a5047
Reset patterns:
- global.json
- NuGet.config
- eng/Version.Details.xml
- eng/Versions.props
- eng/common/*
### Issue Details

After merging regression PR #32905 – [XSG] Improve diagnostic reporting
during binding compilation, XAML bindings that were previously ignored
during source-generated binding compilation started failing the build.
The issue was observed in bindings that used:

AncestorType={x:Type ContentPage}

The build now fails with MAUIG2045, which is treated as an Error.

Previously, the source generator silently skipped unsupported or invalid
bindings without reporting diagnostics, so these bindings did not block
the build.

### Description of Change

<!-- Enter description of the fix in this section -->
PR #32905 updated the binding source generator to report diagnostics
instead of silently ignoring invalid bindings.

Previous behavior
```
// In CompiledBindingMarkup.cs
return false; // TODO report diagnostic
```

Updated behavior
```
context.ReportDiagnostic(
    Diagnostic.Create(Descriptors.BindingPropertyNotFound, ...));
```

The PR introduced six new MAUIG diagnostics that align with the older
XamlC XC* diagnostics, improving diagnostic visibility during binding
compilation.

Because MAUIG2045 is emitted as an Error, bindings using
AncestorType={x:Type ContentPage} now fail compilation. To resolve the
issue, the bindings were updated to use the correct view type:

AncestorType={x:Type views:BasePage}

This change restores successful compilation while preserving the new
diagnostic behavior introduced by PR #32905.

### 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. -->

Fixes #36827
…errors in Essentials (refs #36451) (#36619)

> [!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!



Workflow artifact: ci-fix
Artifact kind: help
Refs: #36451
Target branch: net11.0
Attempt: 1/10

## Attempt 1 of 10

Guard the version-specific iOS/Android APIs that CA1416 flags on the
`net11.0-ios26.5` / `net11.0-android37.0` target frameworks so the
Essentials assembly builds cleanly.

## Root cause

Essentials calls several platform APIs that are unsupported (or only
supported above the assembly's minimum) on the new `net11.0-ios26.5` /
`net11.0-android37.0` TFMs, which the platform-compatibility analyzer
reports as CA1416 build errors:

- `src/Essentials/src/Map/Map.ios.watchos.macos.cs` — `MKPlacemark`
(unsupported on iOS 26+).
- `src/Essentials/src/MediaPicker/MediaPicker.ios.cs` —
`PHPickerConfiguration` (iOS 14+) and the
`UIGraphics.BeginImageContext*` family (unsupported on newer iOS).
- `src/Essentials/src/Permissions/Permissions.ios.cs` —
`UNAuthorizationStatus.Ephemeral` (iOS 14+) and
`CNAuthorizationStatus.Limited` (iOS 18+).
- `src/Essentials/src/MediaPicker/MediaPicker.android.cs` — MediaStore
`IsPending`/`RelativePath` (API 29+) and `MediaStore.ExtraPickImagesMax`
(API 33+).
- `src/Essentials/src/Permissions/Permissions.android.cs` —
`Manifest.Permission.Flashlight` (unsupported on Android 24+).

## Fix

Minimal, behavior-preserving platform guards — no API surface change, no
muted tests:

- **Map (iOS 26+):** keep `MKPlacemark` + `MKMapItem.OpenMaps` and scope
a `#pragma warning disable CA1416` to that call site. `MKPlacemark` is
deprecated on iOS 26, not removed, so runtime behaviour — including
`MapLaunchOptions.Name` and `NavigationMode` — is unchanged. Migrating
to `MKMapItem(location:address:)` is tracked by #36845.
- **MediaPicker.ios:** guard the second `PHPickerConfiguration` block
with `OperatingSystem.IsIOSVersionAtLeast(14, 0)` (mirrors the
already-guarded first block); replace
`UIGraphics.BeginImageContextWithOptions`/`GetImageFromCurrentImageContext`/`EndImageContext`
with `UIGraphicsImageRenderer` (iOS 10+), preserving opacity, scale, and
draw rect.
- **Permissions.ios:** guard `UNAuthorizationStatus.Ephemeral` behind
`IsIOSVersionAtLeast(14)` and `CNAuthorizationStatus.Limited` behind
`IsIOSVersionAtLeast(18)` (switch → guarded if/else so the guarded enum
members are only referenced when supported).
- **MediaPicker.android:** annotate `SaveToMediaStoreAsync` with
`[SupportedOSPlatform("android29.0")]` (it is only reached from the API
29+ branch of `SaveToGalleryAsync`); guard
`MediaStore.ExtraPickImagesMax` with
`OperatingSystem.IsAndroidVersionAtLeast(33)`.
- **Permissions.android:** build the Flashlight `RequiredPermissions`
dynamically, always requesting `Camera` and only adding `Flashlight`
when `!OperatingSystem.IsAndroidVersionAtLeast(24)`.

## What is unverified / where I need help

- The `net11.0-ios26.5` / `net11.0-android37.0` builds cannot be
compiled on the Linux CI-fixer runner, so this fix is **not
runner-validated** — it needs the PR's own CI (`maui-pr`) to confirm
CA1416 is cleared. A maintainer needs to `/azp run maui-pr`.
- The issue reports ~28 CA1416 errors but only a subset are quoted; this
change addresses every API enumerated in the issue's recommended action.
If CI surfaces additional violations, a follow-up attempt on this same
PR will cover them.
- Map: an earlier revision of this PR rerouted coordinate opens through
the `maps.apple.com` URL scheme. That was reverted — the URL form drops
`MapLaunchOptions.Name` and ignores `NavigationMode` (`dirflg` is only
honoured alongside a `daddr`), which would have been a silent regression
on iOS 26+ and Mac Catalyst 26+. It is now a scoped CA1416 suppression
with the migration tracked in #36845.

## Validation

- Command: `not run because target frameworks net11.0-ios26.5 /
net11.0-android37.0 cannot be built on the Linux runner`
- Result: not run

## Evidence

- Original failing build (from tracking issue): see #36451




> Generated by [CI Failure Fixer
(net11.0)](https://github.com/dotnet/maui/actions/runs/29546079512) ·
448.4 AIC · ⌖ 31.5 AIC · ⊞ 5.2K ·
[◷](https://github.com/search?q=repo%3Adotnet%2Fmaui+%22gh-aw-workflow-id%3A+ci-status-fix-net11%22&type=pullrequests)

<!-- gh-aw-agentic-workflow: CI Failure Fixer (net11.0), engine:
copilot, version: 1.0.63, model: claude-opus-4.8, id: 29546079512,
workflow_id: ci-status-fix-net11, run:
https://github.com/dotnet/maui/actions/runs/29546079512 -->

<!-- gh-aw-workflow-id: ci-status-fix-net11 -->
<!-- gh-aw-workflow-call-id: dotnet/maui/ci-status-fix-net11 -->

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 76c88205-cf28-4deb-bc55-75e9c2363eb8
Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
<!-- 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!

## Summary

Extracts both validated BL0016 sample fixes from dependency PR #36838
onto `net11.0`:

- `src/BlazorWebView/samples/WebViewAppShared/ExampleJsInterop.cs`
-
`src/BlazorWebView/samples/MauiRazorClassLibrarySample/ExampleJsInterop.cs`

The updated .NET 11 Preview 7 SDK flowing through #36838 enables BL0016
analysis for these JavaScript interop calls. This focused change
prepares `net11.0` for that flowed SDK; it does not assert that the
branch's older SDK currently fails these builds.

## Exception semantics

Operational module import, prompt, and DOM update calls catch
`JSException` and rethrow `InvalidOperationException` with
operation-specific context. Module disposal catches only
`JSDisconnectedException`, because a disconnected JavaScript context no
longer requires disposal; other disposal failures continue to propagate.

## CI evidence

- [maui-pr build
1528734](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1528734)
surfaced BL0016 diagnostics in both `ExampleJsInterop` copies after the
Preview 7 dependency update.
- [maui-pr build
1529843](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1529843),
after the `WebViewAppShared` source fix, had no remaining diagnostics
for that copy and still identified the Razor class library copy,
motivating the second validated fix.

## Validation

- `dotnet build
src/BlazorWebView/samples/WebViewAppShared/WebViewAppShared.csproj -f
net11.0 -c Debug` — passed, 0 warnings and 0 errors
- `dotnet build
src/BlazorWebView/samples/WebViewAppShared/WebViewAppShared.csproj -f
net11.0 -c Release` — passed, 0 warnings and 0 errors
- `dotnet build
src/BlazorWebView/samples/MauiRazorClassLibrarySample/MauiRazorClassLibrarySample.csproj
-f net11.0 -c Debug` — passed, 0 warnings and 0 errors
- `dotnet build
src/BlazorWebView/samples/MauiRazorClassLibrarySample/MauiRazorClassLibrarySample.csproj
-f net11.0 -c Release` — passed, 0 warnings and 0 errors
- Searched `src/BlazorWebView/samples/**`: exactly two
`ExampleJsInterop` implementations and seven relevant
`IJSRuntime`/`IJSObjectReference` invocation or disposal call sites; all
operational calls are guarded and disconnection is ignored only during
disposal.
- `git diff --check` passed.

Co-authored-by: PureWeen <223556219+Copilot@users.noreply.github.com>
Copilot-Session: c6ae0385-a806-4d6c-9725-dc102062c5c4
#36892)

<!-- 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!

### Description of Change

Running the .NET MAUI gallery sample
(`src/Controls/samples/Controls.Sample`) on Windows produced a runtime
error as soon as the BlazorWebView page loaded:

```
WebViewIpcReceiver.ts:32 Object of type 'Microsoft.AspNetCore.Components.Routing.Router' does not have a property matching the name 'PreferExactMatches'.
 at Microsoft.AspNetCore.Components.Reflection.ComponentProperties.ThrowForUnknownIncomingParameterName(Type targetType, String parameterName)
 at Microsoft.AspNetCore.Components.Reflection.ComponentProperties.SetProperties(ParameterView& parameters, Object target)
 at Microsoft.AspNetCore.Components.ParameterView.SetParameterProperties(Object target)
 at Microsoft.AspNetCore.Components.Routing.Router.SetParametersAsync(ParameterView parameters)
```

### Root cause

`Router.PreferExactMatches` was a .NET 5-era parameter on
`Microsoft.AspNetCore.Components.Routing.Router`. It became a
no-op/obsolete in .NET 6 and has now been **removed from the type
entirely in ASP.NET Core 11**. Because this branch builds against an
ASP.NET Core 11 preview, Blazor's parameter binding no longer finds a
matching property and throws `ThrowForUnknownIncomingParameterName` at
runtime.

This is documented as an official upstream breaking change:

- 📄 [Obsolete Blazor APIs
removed](https://learn.microsoft.com/aspnet/core/breaking-changes/11/blazor-obsolete-apis-removed)
(ASP.NET Core 11, source-incompatible) — `Router.PreferExactMatches` is
the first entry in the Affected APIs list, with the recommended action:
*"Remove the assignment. Exact matching has been the default since .NET
6."*
- 🔧 Upstream removal PR:
[dotnet/aspnetcore#62755](dotnet/aspnetcore#62755)
- 📜 Origin of the behavior change: [Blazor: Route precedence logic
changed in Blazor
apps](https://learn.microsoft.com/aspnet/core/breaking-changes/5/blazor-routing-logic-changed)
(.NET 5)

### Fix

Removed the ` PreferExactMatches="true"` attribute from
`src/Controls/samples/Controls.Sample/Main.razor`:

```diff
-<Router AppAssembly="@gettype().Assembly" PreferExactMatches="true">
+<Router AppAssembly="@gettype().Assembly">
```

Exact matching is the default (and only) behavior now, so there is **no
behavior change** — this matches the recommended action in the
breaking-change doc verbatim.

This was the **last remaining occurrence** of `PreferExactMatches` in
the repo — every other `<Router>` already omits it, e.g.
`src/BlazorWebView/samples/BlazorWpfApp/Main.razor`,
`src/BlazorWebView/samples/BlazorWinFormsApp/Main.razor`,
`src/BlazorWebView/samples/WebViewAppShared/RouterComponent.razor`, and
both Blazor templates under `src/Templates/src/templates/`.

### Issues Fixed

None filed.

### Validation

This is a `.razor` markup change in a sample, so a targeted build was
used:

```
dotnet build Microsoft.Maui.BuildTasks.slnf
dotnet build src/Controls/samples/Controls.Sample/Maui.Controls.Sample.csproj -f net11.0-windows10.0.19041.0
```

Both succeeded with 0 errors and 0 warnings. A repo-wide search confirms
there are now zero occurrences of `PreferExactMatches`.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8d49898c-b01b-411c-b02e-b82db45c9fa8
…36891)

<!-- 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!

### Description

Bumps the Windows-related NuGet pins in `eng/Versions.props` to the
latest stable releases. These four properties are consumed centrally via
`eng/NuGetVersions.targets` (`<PackageReference Update=... />`), so this
single file is the only change needed.

| Package | Property | Old | New |
| --- | --- | --- | --- |
| `Microsoft.WindowsAppSDK` | `MicrosoftWindowsAppSDKPackageVersion` |
`1.8.251106002` | **`2.3.1`** |
| `Microsoft.Windows.SDK.BuildTools` |
`MicrosoftWindowsSDKBuildToolsPackageVersion` | `10.0.26100.4654` |
**`10.0.28000.2526`** |
| `Microsoft.Web.WebView2` | `MicrosoftWindowsWebView2PackageVersion` |
`1.0.3179.45` | **`1.0.4078.44`** |
| `Microsoft.Graphics.Win2D` | `MicrosoftGraphicsWin2DPackageVersion` |
`1.3.2` | **`1.4.0`** |

All four were verified as the latest *listed stable* versions against
the NuGet flat-container index.

### Windows App SDK 1.8 → 2.3.1 (major version jump)

This is the notable part of the change, so it got extra scrutiny. **No
source changes were required.** Findings:

- **No API/namespace churn.** The `Microsoft.UI.Xaml` surface that MAUI
consumes is unchanged; Core, Controls, Essentials and Graphics.Win2D all
compile against 2.3.1 with zero new errors.
- **No minimum-TFM bump.** `Directory.Build.targets` keeps
`TargetPlatformMinVersion`/`SupportedOSPlatformVersion` at
`10.0.17763.0`. WinAppSDK 2.x validates against
`WindowsSdkPackageVersion` (repo value `10.0.19041.44`) and that check
passes unchanged.
- **Bootstrapper / packaging behavior is unchanged for us.** Unpackaged
apps still resolve `WindowsAppSDKSelfContained=true` and packaged apps
still resolve `WindowsPackageType=MSIX`, exactly as before the bump. An
unpackaged self-contained publish was verified to emit the full
bootstrap set (`Microsoft.WindowsAppRuntime.Bootstrap.dll`,
`Microsoft.WindowsAppRuntime.Bootstrap.Net.dll`,
`Microsoft.WindowsAppRuntime.dll`) plus all expected `.pri` resources.
- **Transitive graph resolves cleanly** — `Microsoft.WindowsAppSDK.WinUI
2.3.0`, `Foundation 2.3.5`, `Base 2.0.4`, `Runtime 2.3.1`, etc.

### NuGet feeds

No `NuGet.config` change is required. All four versions were confirmed
present in the `dotnet-public` dnceng feed already configured by the
repo, and restore succeeds from the existing sources — `nuget.org` was
**not** added.

### Helix device tests

`eng/devices/run-windows-devicetests.cmd` derives the Windows App
Runtime installer URL by parsing major.minor out of
`MicrosoftWindowsAppSDKPackageVersion`, so it follows this bump
automatically with no edit. Verified that the resulting channel URL
`https://aka.ms/windowsappsdk/2.3/latest/windowsappruntimeinstall-x64.exe`
resolves successfully.

### Validation

All builds below were run against a **fully pristine tree** —
`artifacts/`, `.buildtasks/` and every `obj`/`bin` removed, with MSBuild
node reuse shut down first so no stale task assemblies were reused.

| Build | Result |
| --- | --- |
| `Microsoft.Maui.BuildTasks.slnf` (full, incl. both Windows TFMs) | ✅ 0
errors |
| `Maui.Controls.Sample` — `net11.0-windows10.0.19041.0` | ✅ 0 errors |
| `Maui.Controls.Sample` — `net11.0-windows10.0.20348.0` | ✅ 0 errors |
| `Essentials.Sample` (MSIX packaged) — `net11.0-windows10.0.19041.0` |
✅ 0 errors |
| `Core.DeviceTests` (MSIX packaged) — `net11.0-windows10.0.19041.0` | ✅
0 errors |
| `Core.DeviceTests` (unpackaged, self-contained publish, `win-x64`) | ✅
0 errors |

Build-only validation; no apps were launched. Warning counts are
unchanged from the pre-bump baseline.

### Notes

- `MicrosoftWindowsSDKBuildToolsWinAppPackageVersion` is intentionally
untouched — that property does not exist on `net11.0` and is owned by
#36889.
- `src/Templates/src/cgmanifest.json` contains the old version strings
but is auto-generated (regenerated in CI via
`eng/scripts/update-cgmanifest.ps1`) and is deliberately **not**
committed here.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 546491d2-db16-496e-97fa-41cfe758db9b
…ps (#36889)

<!-- 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!

## Description

Adds the
[`Microsoft.Windows.SDK.BuildTools.WinApp`](https://www.nuget.org/packages/Microsoft.Windows.SDK.BuildTools.WinApp)
NuGet package (v0.5.0) as a dependency for all MAUI Windows apps. This
package provides MSBuild targets that enable `dotnet run` for
MSIX-packaged Windows applications by automatically registering
loose-layout packages and launching the app via `winapp run`.

## Changes

- **`eng/Versions.props`** — Add
`MicrosoftWindowsSDKBuildToolsWinAppPackageVersion` version variable
- **`eng/NuGetVersions.targets`** — Add central version pinning for the
package
- **`src/Core/src/Core.csproj`** — Add `PackageReference` in the Windows
ItemGroup (flows transitively to all MAUI Windows apps)
- **`.github/dependabot.yml`** — Add to `WindowsAppSDK` dependabot group
for automated version bumps
-
**`src/Controls/samples/Controls.Sample/Properties/launchSettings.json`**
— Update `commandName` to `MsixPackage` to match MSIX packaging mode

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
Copilot-Session: 1f8d588b-4add-43c5-9c55-e943bef6ff3f
…lution template (refs #36846) (#36855)

Workflow artifact: ci-fix
Artifact kind: fix
Refs: #36846
Target branch: net11.0
Attempt: 1/10



## Attempt 1 of 10

Remove the obsolete `app.UseWebAssemblyDebugging()` call (and its
companion `inspectUri` debug config) from the Blazor Web solution
template so the generated project builds clean on .NET 11.

## Root cause
The `maui-blazor-solution` template's `MauiApp.1.Web/Program.cs` and
`Program.Main.cs` emitted `app.UseWebAssemblyDebugging();` inside the
`#if (UseWebAssembly)` development block, and
`Properties/launchSettings.json` set the matching `inspectUri`.
`UseWebAssemblyDebugging()` is obsolete as of .NET 11 and surfaces as
build diagnostic **ASPDEPR011**, breaking `dotnet new` template builds
for WebAssembly configurations (repro builds 1528586 / 1528665).

## Fix
Removed the `UseWebAssemblyDebugging()` call from both `Program.cs` and
`Program.Main.cs`. Because WebAssembly no longer contributes any
development-only pipeline step, the guard is narrowed from `#if
(UseWebAssembly || IndividualLocalAuth)` to `#if (IndividualLocalAuth)`,
preserving the existing `UseMigrationsEndPoint()` behavior for the
Individual Local Auth configuration and the `else`/non-development
branch for all others. The obsolete `inspectUri` entries were removed
from both `http` and `https` launch profiles. This mirrors the
equivalent change in the ASP.NET Core .NET 11 Blazor Web templates.

## What is unverified / where I need help
- Full `dotnet new` template instantiation + build across every
parameter permutation (`UseWebAssembly` x `IndividualLocalAuth` x
http/https/LocalhostTld) was not run in this environment; CI template
integration tests should exercise these.
- Please confirm no remaining WebAssembly debugging affordance is
expected in the generated project for .NET 11.

## Validation
- Command: `not run because template instantiation/build is exercised by
CI integration tests, not locally available here`
- Result: not run

## Evidence
- Original failing builds (from tracking issue):
https://dev.azure.com/dnceng-public/public/_build/results?buildId=1528586
and
https://dev.azure.com/dnceng-public/public/_build/results?buildId=1528665

---
Filed by `ci-status-fix-net11`. This is the single PR for
#36846: the workflow watches its own CI and pushes up to **10
attempts on this same PR** (it never opens a second PR). It advances
only when the fix's own build settles red and that red is caused by the
fix. In round 1 a maintainer still needs to comment `/azp run maui-pr`
to exercise the new commit.




> [!WARNING]
> <details>
> <summary>Firewall blocked 1 domain</summary>
>
> The following domain was blocked by the firewall during workflow
execution:
>
> - `awmgmcpg`
>> To allow these domains, add them to the `network.allowed` list in
your workflow frontmatter:
>
> ```yaml
> network:
>   allowed:
>     - defaults
>     - "awmgmcpg"
> ```
>
> See [Network
Configuration](https://github.github.com/gh-aw/reference/network/) for
more information.
>
> </details>


> Generated by [CI Failure Fixer
(net11.0)](https://github.com/dotnet/maui/actions/runs/30318597385) ·
440.2 AIC · ⌖ 19.6 AIC · ⊞ 3.7K ·
[◷](https://github.com/search?q=repo%3Adotnet%2Fmaui+%22gh-aw-workflow-id%3A+ci-status-fix-net11%22&type=pullrequests)

<!-- gh-aw-agentic-workflow: CI Failure Fixer (net11.0), engine:
copilot, version: 1.0.71, model: claude-opus-4.8, id: 30318597385,
workflow_id: ci-status-fix-net11, run:
https://github.com/dotnet/maui/actions/runs/30318597385 -->

<!-- gh-aw-workflow-id: ci-status-fix-net11 -->
<!-- gh-aw-workflow-call-id: dotnet/maui/ci-status-fix-net11 -->

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
#36900)

Description:
> [!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!

### Description of Change

CollectionView UI tests on Windows were failing in CI because the
visual-regression snapshot baselines no longer matched the current
rendered output. This PR updates the snapshot images used by these tests
so they reflect the correct expected UI, resolving the CI failures.

**Changes:**
- Added new baseline snapshot
`windows-cv1/CollectionViewSelectedItemBackgroundLost.png`
- Added new baseline snapshot
`windows-cv1/ItemShouldbeScrolledbasedOnGroupHeader.png`
- Updated baseline snapshot
`windows/ItemShouldbeScrolledbasedOnGroupHeader.png`
- Updated baseline snapshot
`windows/VerifySelectionModeSingleWhenProgrammaticSelectionWorksWithVerticalList.png`

**Issue Fixed**
 Fixes #36810
…stic suppressions) (#36868)

<!-- 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!

### Description

Building `Controls.Xaml.UnitTests` locally in **Debug** currently fails
with 16 errors. These are stale diagnostic suppressions that only
surface in local/dev builds: `Directory.Build.props` defaults
`TreatWarningsAsErrors=true`, whereas CI overrides it to `false`
(`eng/pipelines/arcade/variables.yml`), so these warnings never broke CI
— only local builds.

Two independent stale suppressions:

- **MAUIX2017 — "property is being set multiple times" (5 negative-test
fixtures).** The duplicate implicit-content-property diagnostic was
renumbered `MAUIX2015` → `MAUIX2017` in the `main`→`net11.0` merge
(`1895265f9b`), but the fixtures that intentionally exercise this
scenario still suppressed the old number (`NoWarn="67;2015"`), and the
project still listed `MAUIX2015` in `WarningsNotAsErrors`. Updated both
to `MAUIX2017` for `Bz40906.xaml`, `Maui3059.xaml`, `Maui20616.xaml`,
`Maui20818.xaml`, and `TestSharedResourceDictionary.xaml`.
- **CS8632 — nullable annotations without a `#nullable` context
(`Issues/Maui34998.xaml.cs`).** The file uses `EventHandler?` /
`object?` but had no `#nullable` directive. Added `#nullable enable`.

### Verification

`Controls.Xaml.UnitTests` now builds and runs locally (net TFM, Debug):
**2039 passed, 8 skipped**.

> [!NOTE]
> Two unrelated tests (`TwoWayDecimalBinding_INPC`,
`TwoWayDecimalBinding_VMToUI`) fail on locales that use a comma decimal
separator (e.g. `fr-FR`) — `Expected: 25,75` vs `Actual: 2575`. That's a
pre-existing culture-sensitivity issue in those tests, out of scope for
this PR.

### Notes

- Test-project-only change; no product code and no public API changes.
- CI is unaffected (it already builds with
`TreatWarningsAsErrors=false`); this purely unblocks local Debug builds
of the project.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…tion (#36885)

<!-- 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!

### Root cause

The .NET 11 lazy parent resource propagation path enumerates synthetic
`AppThemeBinding.AppThemeResource` keys through `GetMergedResourceKeys`,
but its on-demand `TryGetResource` lookup only searched resource
dictionaries. The synthetic key therefore remained unresolved and
dynamic resources could retain `AppTheme.Unspecified` when a parent was
assigned without an existing resource listener.

### Description of Change

Resolve `AppThemeBinding.AppThemeResource` directly from the
`Application` found in the element parent chain. This keeps the lazy
keys-only path consistent with full merged-resource snapshots and
preserves Application-wins semantics.

### Behavioral impact

App-theme dynamic resources now resolve to `Application.RequestedTheme`
when parent propagation occurs, including views that did not already
have a resource listener. Other resource lookup behavior is unchanged.

### Validation

-
`AppThemeTests.ParentSetResolvesAppThemeDynamicResourceWithoutListener`:
Debug 1/1 passed; Release 1/1 passed
- `DynamicResourceTests|ResourceDictionaryTests|AppThemeTests`: Debug
72/72 passed; Release 72/72 passed
- All runs targeted `net11.0` with platform target frameworks disabled
- `git diff --check` passed

### Issues Fixed

Fixes #36794

Co-authored-by: PureWeen <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 84e2cc34-f170-423f-bbba-bf23e780e86f
…teComponent (#36833)

<!-- 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!

### Description

Makes the **XAML Incremental Hot Reload (XIHR)** source generator
deterministic and Edit-and-Continue (EnC) stable. This addresses
feedback that the generator produced non-deterministic output because it
carried mutable static state across generator runs (a monotonic
`__version` counter plus an accumulating patch chain in
`XamlHotReloadState`), which:

- left **stale/invalid patches** behind when an edit was reverted (e.g.
`Level2` → `Level22` → `Level2` kept the invalid `Level22` patch
forever, sometimes producing uncompilable code), and
- caused `UpdateComponent()` to **appear → disappear → reappear** across
generations, destabilizing Roslyn's EnC delta tracking (`MethodsAdded` /
`GetPreviousMethodHandle`).

### What changed

- **Content-hash `__version`.** `InitializeComponent` and
`UpdateComponent` now stamp `__version` with a stable, deterministic
FNV-1a hash of the current XAML content
(`GeneratorHelpers.StableContentHash`) instead of a monotonic counter.
The value is a pure function of the current content — identical XAML
always yields the same identity, and reverting an edit restores the
earlier identity. The counter never leaks into generated output.
- **Always-emit `UpdateComponent()` from the first generation.** The
method is now emitted on every generation (first compile, no-op edits,
unchanged rebuilds), so a XIHR type never gains or loses the method
across generations — the member-stability property Roslyn EnC requires.
Because patch property-sets are absolute, a single previous→current
patch brings any live instance to the current state regardless of the
edit it was last at, and a revert collapses to the earlier
patch/identity.
- **Inherited-XAML fix.** A XAML class deriving from another XAML class
emits its own `UpdateComponent()`, which hides the base's; the generated
file suppresses `CS0108` (the hiding is intentional — each level patches
its own tree). This was latent before (only surfaced on edit);
always-emit surfaces it at build time.
- **Removed dead mutable state.** Dropped the accumulating `PatchBodies`
chain and the now-unused `GetVersion` / `GetPatchBodies` /
`UpdateAndClearPatches` from `XamlHotReloadState` — that accumulation
was the mechanism behind the revert-leaves-stale-patch bug.

### Tests

All 462 `SourceGen.UnitTests` pass. New coverage:

- `ContentHash_IsDeterministic_And_RevertRestoresIdentity` — `__version`
is content-derived; a revert restores the earlier identity.
-
`RevertedGeneration_InitializeComponent_IsByteIdentical_ToInitialGeneration`
(property + structural edits) — `InitializeComponent` is
**byte-identical** whether V1 is generated cleanly or reached by
reverting V1→V2→V1.
- `PropertyRevert_AppliedViaHotReload_ReturnsToBaseline` — a **live
`MetadataUpdater.ApplyUpdate` V1→V2→V1**, asserting the instance
property returns to its baseline value at runtime (reverse transition).
- `UpdateComponent_OnInheritedXamlClass_CompilesWithoutHidingWarning` —
reproduces and locks the inherited-XAML `CS0108` fix.
- Existing pipeline/E2E tests updated for the content-hash / always-emit
design.

### Notes

- This is a source-generator-only change (`src/Controls/src/SourceGen`);
no public API changes.
- Empirically verified (via the byte-identical test) that node IDs are
already deterministic, so no `NodeIdHelper` rewrite was needed.


---

### Update — diagnostics classification (addressing @kirillkovch
feedback)

Making `UpdateComponent()` always-present broke Hot Reload
**diagnostics**: the SDK's "is this a XAML change?" signal was the mere
*presence* of `UpdateComponent()` on an updated type, so once it's
always present, **every** delta — even a pure C#/code-behind edit — was
reported to VS/VS Code XamlTools as an IXHR change (`HandledTypes.Count`
always > 0).

Rather than revert always-emit (which Tomas noted isn't mandatory), we
keep it (member stability / no EnC churn) and make the classifier
accurate:

- **SourceGen** emits a static, EnC-updating `internal static int
__XamlContentHash()` in `InitializeComponent` (same deterministic hash
as `__version`). A pure C# edit does not regenerate the XAML code, so
this method body — and its returned hash — is unchanged.
- **Runtime** (`XamlIncrementalHotReloadHandler`) now classifies a type
as a XAML change **iff its `__XamlContentHash()` changed** vs. the last
value observed (per-type cache; first-delta baseline recovered from a
live instance's stamped `__version`). Only changed types populate
`HandledTypes` and get dispatched; unchanged-content deltas →
`HandledTypes` empty → correctly non-XAML.

The `HotReloadDiagnostics` / `UpdateRequested` reflection contract
(consumed by XamlTools) is **shape-unchanged**; only the population of
`HandledTypes` is now precise. This is strictly more accurate than the
prior behavior — it also fixes the pre-existing misclassification where
editing the code-behind of a previously-XAML-edited page was reported as
a XAML change.

> [!NOTE]
> This changes the semantics of
`HotReloadDiagnostics.UpdateRequested.HandledTypes` (a reflection
contract consumed by the VS / VS Code "XamlTools" hot reload
diagnostics). The member shape/names are unchanged, but the VS-side team
should validate the more-precise `HandledTypes` population.

New tests: `UpdateApplication_ReportsXamlChange_ButNotUnchangedContent`
(drives the real handler through `ApplyUpdate`) and an extended
`ContentHash_IsDeterministic_And_RevertRestoresIdentity`.

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…1.0) (#34519)

- [x] Merge origin/net11.0 into our branch
- [x] Remove the `_MauiFixTrimmerRootAssemblyMetadata` workaround target
from `Microsoft.Maui.Controls.targets`
- [x] Remove `RootMode="All"` from `TrimmerRootAssembly` items in
`AOTTemplateTest.cs`

<!-- START COPILOT CODING AGENT TIPS -->
---

🔒 GitHub Advanced Security automatically protects Copilot coding agent
pull requests. You can protect all pull requests by enabling Advanced
Security for your repositories. [Learn more about Advanced
Security.](https://gh.io/cca-advanced-security)

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: sbomer <787361+sbomer@users.noreply.github.com>
Co-authored-by: Sven Boemer <sbomer@gmail.com>
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:

* PureWeen

## 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.

<img alt="merge button instructions"
src="https://i.imgur.com/GepcNJV.png" width="300" />

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.

``` sh
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
```

<details>
<summary>or if you are using SSH</summary>

```
git push git@github.com:dotnet/maui HEAD:merge/main-to-net11.0
```

</details>


After PR checks are complete push the branch
```
git push
```

## Instructions for resolving conflicts

:warning: If there are merge conflicts, you will need to resolve them
manually before merging. You can do this [using GitHub][resolve-github]
or using the [command line][resolve-cli].

[resolve-github]:
https://help.github.com/articles/resolving-a-merge-conflict-on-github/
[resolve-cli]:
https://help.github.com/articles/resolving-a-merge-conflict-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
```

<details>
    <summary>or if you are using SSH</summary>

```
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
```

</details>

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.
Reset patterns:
- global.json
- NuGet.config
- eng/Version.Details.xml
- eng/Versions.props
- eng/common/*
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

Restore the central package version property required by the WinApp PackageReference retained in the net11.0 merge.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ec09bb21-cea8-420a-bb49-00c5c273a523
@PureWeen

Copy link
Copy Markdown
Member

/azp run maui-pr-devicetests

@PureWeen

Copy link
Copy Markdown
Member

/azp run maui-pr-uitests

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command.

@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 -- 36923

Or

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

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@PureWeen

Copy link
Copy Markdown
Member

/azp run maui-pr-devicetests

@PureWeen

Copy link
Copy Markdown
Member

/azp run maui-pr-uitests

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

1 similar comment
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@github-actions

Copy link
Copy Markdown
Contributor Author

Skill Validation Results

@github-actions[bot] — new skill validation results are available based on this last commit: 6602bb8.
To request a fresh validation after new comments or commits, comment /evaluate-skills.

Overall Passed Static Passed LLM Skipped Skills 24 Agents 6

✅ Skill Validation Results — 6602bb8 · [automated] Merge branch 'net11.0' => 'release/11.0.1xx-preview7' · 2026-07-29T23:48:54Z

✅ Static Checks Passed

Skills: 24 | Eval specs linted: 14

Full lint output
── .github/skills/agentic-labeler/tests/eval.vally.yaml
npm warn deprecated prebuild-install@7.1.3: No longer maintained. Please contact the author of the relevant native addon; alternatives are available.
✔ .github/skills/agentic-labeler/tests/eval.vally.yaml is valid
── .github/skills/analyze-sessions/tests/eval.vally.yaml
✔ .github/skills/analyze-sessions/tests/eval.vally.yaml is valid
── .github/skills/ci-fix/tests/eval.ownership.vally.yaml
✔ .github/skills/ci-fix/tests/eval.ownership.vally.yaml is valid
── .github/skills/ci-fix/tests/eval.vally.yaml
✔ .github/skills/ci-fix/tests/eval.vally.yaml is valid
── .github/skills/code-review/tests/eval.capability.vally.yaml
✔ .github/skills/code-review/tests/eval.capability.vally.yaml is valid
── .github/skills/code-review/tests/eval.inline-findings.vally.yaml
✔ .github/skills/code-review/tests/eval.inline-findings.vally.yaml is valid
── .github/skills/code-review/tests/eval.producer-trace.vally.yaml
✔ .github/skills/code-review/tests/eval.producer-trace.vally.yaml is valid
── .github/skills/code-review/tests/eval.trim-aot.vally.yaml
✔ .github/skills/code-review/tests/eval.trim-aot.vally.yaml is valid
── .github/skills/code-review/tests/eval.vally.yaml
✔ .github/skills/code-review/tests/eval.vally.yaml is valid
── .github/skills/code-review/tests/hermeticity.vally.yaml
✔ .github/skills/code-review/tests/hermeticity.vally.yaml is valid
── .github/skills/evaluate-pr-tests/tests/eval.vally.yaml
✔ .github/skills/evaluate-pr-tests/tests/eval.vally.yaml is valid
── .github/skills/pr-review/tests/eval.gh-auth.vally.yaml
✔ .github/skills/pr-review/tests/eval.gh-auth.vally.yaml is valid
── .github/skills/try-fix/tests/eval.vally.yaml
✔ .github/skills/try-fix/tests/eval.vally.yaml is valid
── .github/skills/verify-tests-fail-without-fix/tests/eval.vally.yaml
✔ .github/skills/verify-tests-fail-without-fix/tests/eval.vally.yaml is valid

⏭️ LLM Evaluation: Skipped

💡 LLM evaluation was not run for this external PR.
A repository contributor can post /evaluate-skills on this PR to trigger full evaluation.

🔍 Full results and investigation steps

@kubaflo
kubaflo merged commit 599143d into release/11.0.1xx-preview7 Jul 30, 2026
132 of 150 checks passed
@kubaflo
kubaflo deleted the merge/net11.0-to-release/11.0.1xx-preview7 branch July 30, 2026 13:13
@github-actions github-actions Bot added this to the .NET 11.0-preview7 milestone Jul 30, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 30, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants