Repository navigation
[automated] Merge branch 'net11.0' => 'release/11.0.1xx-rc2' - #38971
Merged
kubaflo merged 6 commits intoSep 28, 2026
Merged
Conversation
…ItemsRepeater (#38723) <!-- 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! ### Issue Description `CollectionView` on WinUI is implemented using `ItemsRepeater`. While `ItemsRepeater` provides virtualization and item realization, it does not provide the complete accessibility and keyboard navigation behavior expected by `CollectionView`. There are two primary issues: ### 1. Focus Restoration `ItemsRepeater` does not track the last focused item or provide APIs to restore focus to a specific item. When keyboard navigation returns to the `CollectionView`, there is no built-in mechanism to determine which item should regain focus. Additionally, due to virtualization, the target item may not be realized at the time focus is requested, preventing focus from being applied immediately. ### 2. Selection and Keyboard Navigation `ItemsRepeater` does not support `SingleSelectionFollowFocus`. In `SelectionMode.Single`, keyboard navigation using `Tab` and Arrow keys can trigger selection-related behavior that differs from the expected `CollectionView` experience. WinUI's selection-follow-focus implementation assumes that the selected item is a native `UIElement`. In .NET MAUI, the selected item is typically a bound data object. This mismatch can result in an invalid COM cast and cause an `E_NOINTERFACE` ("No such interface supported") exception during keyboard navigation. ### Root Cause `ItemsView` is responsible for selection and current-item semantics: - It owns `SelectionMode` and selected-item state. - It tracks the current item through `CurrentItemIndex`. - It is expected to provide an accessible keyboard navigation experience. `ItemsRepeater`, however, is only responsible for realizing and recycling item containers. It does not maintain selection, current-item state, or focus restoration behavior required by `CollectionView`. ### Fix Description - Set item containers as accessibility elements so they participate correctly in accessibility and keyboard navigation scenarios. - Configure `MauiItemsView` as a tab stop after the control is loaded, allowing keyboard users to re-enter the control. - Introduce a custom `AutomationPeer` for `MauiItemsView` to provide CollectionView-specific accessibility behavior not available through `ItemsRepeater`. - Add `ItemsViewAccessibilityHelper` to: - Track the currently focused item. - Restore focus when keyboard navigation re-enters the control. - Coordinate focus behavior independently of `ItemsRepeater` virtualization. - Handle element preparation events to support focus restoration for virtualized items that are not yet realized. Focus is applied automatically once the target container becomes available. ### Issues Fixed Fixes #38660 ### Tested the behaviour in the following platforms - [ ] Android - [x] Windows - [ ] iOS - [ ] Mac ### Output Screenshot Before Issue Fix | After Issue Fix | |----------|----------| |<video width="100" height="100" alt="Before Fix" src="https://github.com/user-attachments/assets/edaef8c2-4afb-49a5-ae92-17bb16fd7dc1">|<video width="100" height="100" alt="After Fix" src="https://github.com/user-attachments/assets/ffc094a8-d41e-47f6-911c-e2bed56675c5">|
#38958) <!-- 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 Adds Apple Icon Composer `.icon` bundle support to the existing `MauiIcon` item for iOS and Mac Catalyst on the `net11.0` branch. The underlying Apple asset compiler support was introduced by dotnet/macios#24722 in Apple workload `26.5.11720-net11-p6`. When an Apple-targeted `MauiIcon` has a case-insensitive `.icon` extension, MAUI now: - bypasses Resizetizer/SkiaSharp for that icon only; - recursively passes the bundle children to the Apple build as `ImageAsset` items; - derives `AppIcon` from the `.icon` directory name; - clears the parsed private `_XSAppIconAssets` value after `_ReadAppManifest`, avoiding conflicts with the template's legacy `XSAppIconAssets` entry without modifying the user's Info.plist; - tracks nested additions, deletions, renames, and content updates for incremental ACTool builds; - exports `.icon` MauiIcons through the existing project-reference item flow. The existing MauiIcon path remains unchanged for ordinary SVG/PNG projects and all non-Apple targets. Users condition the `.icon` item to iOS/Mac Catalyst and retain their existing SVG/PNG `MauiIcon` for other TFMs; no new item type or public metadata API is introduced. Validation reports clear errors for unsupported Apple workloads, missing bundle directories, missing root `icon.json`, empty `Assets`, multiple `.icon` icons, mixed native/ordinary icons for one Apple TFM, and conflicting `AppIcon` values. ### Compatibility - Targets the MAUI `net11.0` branch rather than adding a product-code TFM gate. - Requires Apple workload `26.5.11720-net11-p6` or newer. - Does not weaken Xcode or workload checks. ### Testing - Focused Native Apple icon MSBuild tests: 10 passed. - Integration-test compilation/discovery: 2 passed. - Built a complete Resizetizer package from this branch and clean-built real iOS simulator and Mac Catalyst apps using Apple workload `26.5.11720-net11-p6`. - Verified both `Assets.car` files contain layered `IconImageStack` renditions and final plists select the bundle-derived icon. - Verified no-op, content update (including an older input timestamp), deletion/rename, clean rebuild, `.icon` to SVG switching, runtime Mac Catalyst launch, and direct inspection of the generated `.icns`. ### Issues Fixed Enables the MAUI side of dotnet/macios#24722. No public MAUI issue is linked. --------- Co-authored-by: Copilot App <223556219+Copilot@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 - enables `mono/SkiaSharp` and `mono/SkiaSharp.Extended` as non-workload sources in the official NuGet release pipeline - resolves SkiaSharp builds through the same Darc repository-and-commit path used by existing release sources - verifies the returned BAR repository and exact commit before gathering assets - documents the preparation-only dry-run inputs for SkiaSharp releases SkiaSharp is registered with Maestro through a manual-frequency subscription, so this does not create automatic MAUI dependency updates. SkiaSharp.Extended can use the same consumer path once its selected commit is registered in BAR. ## Safety - `pushPackages: false` performs BAR resolution, gathering, validation, NuGet.org filtering, and audit artifact creation without creating a production publish stage - real non-workload publishing remains blocked by `ManualValidation` before the protected NuGet service connection is used - package identities are filtered against NuGet.org both during preparation and immediately before publishing - repository, commit, package identity, duplicate, malformed-package, and workload-manifest checks remain fail-closed ## Validation - 26 Pester tests passed across the official release pipeline and package-status helper - pipeline YAML and both inline PowerShell scripts parsed successfully - feature-branch preparation run resolved SkiaSharp BAR 333234 and staged all 40 selected packages at versions `4.150.4` and `14.2.1.4`, with no missing or duplicate identities - a gated feature-branch production-shape run prepared the same 40/40 audit set and reached the manual approval boundary before the publish job --------- Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Reset patterns: - global.json - NuGet.config - eng/Version.Details.xml - eng/Versions.props - eng/common/*
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: * mattleibow ## 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. Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
Reset patterns: - global.json - NuGet.config - eng/Version.Details.xml - eng/Versions.props - eng/common/*
|
Azure Pipelines: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
kubaflo
disabled auto-merge
September 28, 2026 22:21
This was referenced Sep 29, 2026
kubaflo
added a commit
that referenced
this pull request
Sep 29, 2026
…2.26475.136 (#38972) <!-- 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 Builds `release/11.0.1xx-rc2` against the final **internal** RC2 SDK **11.0.100-rc.2.26475.136** (`darc update-dependencies --id 334091`, source `dnceng/internal/_git/dotnet-dotnet`). It follows the same approach as #32160 did for the net10 GA internal SDK. This supersedes #38965 (SDK pin + initial internal feed wiring) and #38966 (switched to the public `.137` SDK instead of the requested `.136`). #### Why this SDK needs pipeline changes when previous RC2 SDKs didn't Earlier RC2 SDKs came from public `github.com/dotnet/dotnet` builds. BAR 334091 is an internal build: - The SDK archives exist only under `https://ci.dot.net/internal`. The public URL returns 404. - `Microsoft.NET.Sdk` is published to `dotnet11-internal-transport`. - The workload manifests (Mono toolchain, Emscripten), `Microsoft.NETCore.App.Ref` and the runtime packs are published **only** to `dotnet11-internal`. - Arcade's `SetupNugetSources.ps1`/`.sh` in this branch automatically adds `dotnetX-internal` feeds only for .NET 5–10, so `dotnet11-internal` was never added. That caused the `NU1102` workload-manifest failures in internal build 3089917. #### Changes - **SDK pin** (from #38965): `global.json`, `eng/Versions.props`, `eng/Version.Details.xml` → `11.0.100-rc.2.26475.136`. - **`NuGet.config`**: adds disabled `darc-int-dotnet11-internal` and `darc-int-dotnet11-transport` sources. `SetupNugetSources` enables them only in internal builds; public builds never see them. It also adds a disabled `darc-int-dotnet-dotnet-b6b3f56c-3` source for the unreleased **.NET 10.0.13** packs from internal servicing build BAR 334081 (`internal/release/10.0.113`). The final RC2 SDK's net10 Mono/Emscripten workload manifests reference 10.0.13, where the earlier pin used the public 10.0.12, so `dotnet workload install ios` needs this feed. Remove it once 10.0.13 is public. - **`provision.yml` / `variables.yml`** (from #38965): internal feeds, the internal runtime SAS and `PrivateBuild=true` are enabled only for trusted internal builds. That means `System.TeamProject == internal`, the build is not a PR build, and the pipeline is `dotnet-maui` or `dotnet-maui-build`. A raw SAS (not base64) is also produced for the Cake SDK installer. Arcade `SetupNugetSources` receives `$(System.AccessToken)` for trusted internal jobs: the legacy feed PAT returned HTTP 401 in internal build 3090116, while NuGetAuthenticate alone could not load the internal sources during the macOS workload install in build 3090103. Public jobs never receive this token. - **Helix (`stage-helix-tests.yml`, `eng/helix.proj`)**: Helix's built-in `AddDotNetSdk` only checks public SDK feeds. - Trusted internal builds now generate an 8h raw SAS, because Helix downloads the SDK when work items start. - They pass the SAS and `https://ci.dot.net/internal` to `helix.proj`. A small target there mirrors `AddDotNetSdk` and passes the internal container through `FindDotNetCliPackage`'s `AdditionalFeeds`. - The SAS is read through `GetEnvironmentVariable`, so MSBuild doesn't unescape its `%2B`/`%3D` characters. - Public builds keep the stock `IncludeDotNetCli` path. - **Integration tests (`setup-test-env.yml`)**: the `DotNet.csproj` install steps now get `DOTNET_TOKEN` and `PRIVATE_BUILD`, like every other Cake/DotNet.csproj SDK install step. - **TEMPORARY public fallback (`eng/pipelines/common/public-sdk-fallback.yml`)**: included only where internal feeds are *not* set up (public `maui-pr`, internal PR/untrusted pipelines, `skipInternalFeeds`). It probes `ci.dot.net/public` for the pinned SDK. On HTTP 404 it rewrites the checkout's `global.json` and `eng/Versions.props` to the equivalent public RC2 SDK **11.0.100-rc.2.26475.137** (BAR 334092; SDK archives and Mono/Emscripten workload manifests are public) and emits a warning. Because `.137` also references 10.0.13 packs, it adds the public `darc-pub-dotnet-dotnet-e4bafa1e` feed (BAR 333293, public `release/10.0.1xx`) to the checkout's `NuGet.config`. That feed is added only at runtime, so trusted internal builds never mix it with the internal servicing packs. Trusted internal builds never include it and always use `.136`. It becomes a no-op automatically once `.136` is public; delete the template and its two references then. - **`stage-helix-tests.yml` HelixJobMonitor** (from #38965): installs the monitor with the internal runtime feed on trusted internal builds. ### Validation - **Public `maui-pr`** on the final PR head: [1615515](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1615515), completed with 29/31 jobs succeeding, including SDK/workload provisioning, both packs, both platform builds, Windows Helix submissions and the other integration tests. The Helix monitor failed because one Windows Debug Resizetizer test (added on the base branch, not changed by this PR) hit a file lock while deleting its temporary directory; the other 43 Helix work items passed. A manual same-commit rerun of `maui-pr`, [1615611](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1615611), completed with 29/31 jobs passing and reproduced exactly the same two test failures: the Windows Debug test teardown file lock (2/2) and the macOS Apple icon integration failure. The original run also hit an Apple icon integration test failure (`Info.plist` lookup finds multiple files); that identical failure already occurred in the base merge PR #38971 build [1615388](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1615388), before this SDK PR. Its predecessor [1615462](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1615462) was canceled by the last push after it passed Pack macOS, macOS Debug, both Windows Helix test jobs, and SDK/BuildTasks provisioning on Windows and macOS, with no failed tasks. Build 1615426 had already validated the `.137` SDK fallback, but failed before the public 10.0.13 package feed was added. - **Internal `dotnet-maui-build`** on the final PR head: [3090129](https://dev.azure.com/dnceng/internal/_build/results?buildId=3090129) (branch `users/kubaflo/rc2-sdk-internal-feeds-334091`), **succeeded: all 32 jobs passed with no failed tasks**, including SDK/workload provisioning, both Windows and macOS builds and packs, Helix tests and monitor, and Android/iOS integration tests, using the internal `.136` SDK and authenticated feeds. Earlier [3090065](https://dev.azure.com/dnceng/internal/_build/results?buildId=3090065) failed on a missing 10.0.13 pack; [3090103](https://dev.azure.com/dnceng/internal/_build/results?buildId=3090103) could not load internal feed indexes; [3090116](https://dev.azure.com/dnceng/internal/_build/results?buildId=3090116) got HTTP 401 with the legacy PAT. - Local checks: - Fallback script: the pinned internal `.136` was rewritten to `.137` in both files, a second run was a no-op, and an already-public pin was left unchanged. - With the fallback-generated `NuGet.config`, restoring 10.0.13 Mono/AOT/MonoTargets packs succeeds; the committed config fails with NU1102. Arcade `SetupNugetSources.ps1` enables `darc-int-dotnet-dotnet-b6b3f56c-3` and adds its credentials. - Existing `eng/pipelines/ci.Tests.ps1` Pester tests pass (12/12). - YAML and XML parse checks and `git diff --check` pass. - The `helix.proj` target was run with `dotnet msbuild` against a fake feed for osx-arm64 and win-x64 queues. It produced the correct correlation-payload URI with the SAS preserved exactly, plus the correct PATH/DOTNET_ROOT pre-commands. Without the environment variables, the stock `IncludeDotNetCli=true` path is unchanged. ### Known follow-up The internal `dotnet-maui-devicetests` and `dotnet-maui-uitests` pipelines aren't in the trusted list, so they don't get internal feeds. They will also need internal feed support while the rc2 branch pins an internal-only SDK. --------- Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo
added a commit
that referenced
this pull request
Sep 29, 2026
<!-- 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 The Apple Icon Composer tests added in #38958 fail in public CI independently of the SDK change in #38972: - Disable MSBuild node reuse for the new native-icon unit tests, matching the existing incremental Resizetizer tests. Windows keeps the test project directory locked while disposing the temporary fixture when MSBuild nodes remain alive. - Read the app bundle manifest at its platform-specific path (iOS app root or Mac Catalyst `Contents`) instead of recursively requiring only one `Info.plist` across the app and its nested frameworks. The iOS template-baseline assertion currently throws before exercising the new icon. This PR targets `net11.0` so the fix can flow into `release/11.0.1xx-rc2` via the regular branch merge. It supersedes #38983, whose RC2-based head was not suitable after that PR was retargeted to `net11.0`. The SDK PR #38972 contains neither test change in its diff. ## Validation - `NativeAppleIconTargetsTests`: 10 passed locally on macOS. `Microsoft.Maui.IntegrationTests.csproj` builds for `net11.0` with zero warnings; formatting and whitespace checks pass. - The original failures appear in public `maui-pr` runs [1615515](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1615515) and [1615611](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1615611); the macOS manifest failure also occurred in baseline #38971 [build 1615388](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1615388). - The first run on this PR, [1616042](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1616042), passed both Windows Helix Resizetizer work items. Its Mac Catalyst icon integration test got past the former manifest assertion and built the native icon, but a subsequent no-op build timed out amid several other 30-minute template-build timeouts; the macOS job eventually exceeded its 240-minute agent limit. - A **same-commit rerun**, [1616449](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1616449), confirms both `BuildsAppleIconComposerMauiIconIncrementally` cases **passed**: iOS and Mac Catalyst in Azure test run [44759776](https://dev.azure.com/dnceng-public/public/_TestManagement/Runs?runId=44759776&_a=runCharts). The new Windows native-icon fixture did not fail. No further Apple-icon code change or rerun is needed. - **The full rerun is still red for independent failures:** Windows and macOS `Build` integration each failed only `WorkloadInstallPathsAreIndependentOfTrailingSeparator` because `net11.0`'s `global.json` still requests old SDK `.103`, addressed by #38951 and included in #38991. Its Windows Release Helix Resizetizer work item failed `SkiaSharpSvgToolsTests.Resize.BasicNoScaleReturnsOriginalSize` while deleting a locked temporary file, not a `NativeAppleIconTargetsTests` case. This PR intentionally does not change those unrelated tests. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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 net11.0 branch which have not been merged yet to release/11.0.1xx-rc2. I'm a robot and am configured to help you automatically keep release/11.0.1xx-rc2 up to date, so I've opened this PR.
This PR merges commits made on net11.0 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/net11.0-to-release/11.0.1xx-rc2'. 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.