Repository navigation
[automated] Merge branch 'net11.0' => 'release/11.0.1xx-rc2' - #38836
Closed
github-actions[bot] wants to merge 10 commits into
Closed
github-actions[bot] wants to merge 10 commits into
github-actions[bot] wants to merge 10 commits into
Conversation
….0-rc.2.26471.1+azdo.15403349 On relative base path root Microsoft.Android.Sdk.Windows From Version 37.2.0-rc.2.62 -> To Version 37.2.0-rc.2.72
This pull request updates the following dependencies [marker]: <> (Begin:9a046932-c60c-436e-8fc7-8ea2f5902cb5) ## From https://github.com/dotnet/android - **Subscription**: [9a046932-c60c-436e-8fc7-8ea2f5902cb5](https://maestro.dot.net/subscriptions?search=9a046932-c60c-436e-8fc7-8ea2f5902cb5) - **Build**: [11.0.0-rc.2.26471.1+azdo.15403349](https://dev.azure.com/devdiv/DevDiv/_build/results?buildId=15403349) ([333183](https://maestro.dot.net/channel/8298/github:dotnet:android/build/333183)) - **Date Produced**: September 21, 2026 11:16:04 PM UTC - **Commit**: [3c669fd0ba8db6632479f56dcf624efe322d7e8b](dotnet/android@3c669fd) - **Branch**: [main](https://github.com/dotnet/android/tree/main) [DependencyUpdate]: <> (Begin) - **Dependency Updates**: - From [37.2.0-rc.2.62 to 37.2.0-rc.2.72][1] - Microsoft.Android.Sdk.Windows [1]: dotnet/android@b9dfd0c...3c669fd [DependencyUpdate]: <> (End) [marker]: <> (End:9a046932-c60c-436e-8fc7-8ea2f5902cb5) 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! ## Context `AddControlsHandlers` registers the built-in Controls handlers when the MAUI handler collection is first constructed. The default registrations previously used `AddHandler<TElement, THandler>()`, which immediately evaluates `typeof(THandler)` and creates a type-based DI descriptor. On CoreCLR composite-R2R Android startup traces, preparing this registration method caused handler implementation dependencies to be restored and loaded before any of those handlers were needed. In the investigated trace, this included AndroidX RecyclerView, SwipeRefreshLayout, ViewPager2, and CardView while resolving the first application handler. A factory whose body constructs the handler does not have this behavior: creating and storing the delegate does not materialize the implementation type or load its dependency assemblies. The implementation type must therefore appear only inside the deferred factory body, rather than as a generic handler argument or an eagerly evaluated `Type`. ## Changes This PR reuses the existing public factory overload: ```csharp AddHandler<TElement>(Func<IServiceProvider, IElementHandler> handlerImplementationFactory) ``` The built-in Controls registrations now use static factories such as: ```csharp handlers.AddHandler<CollectionView>(static _ => new CollectionViewHandler()); ``` This still registers `typeof(TElement)` immediately, so handler lookup and inheritance resolution are unchanged, but the handler implementation is not constructed or materialized until the first request for that element's handler. No new public API is introduced. ## Construction and DI behavior Most built-in handlers have parameterless constructors. Their factories call those constructors directly, matching the successful path of the previous `Activator.CreateInstance(ImplementationType)` behavior while avoiding reflection and preserving trimming/AOT visibility through an explicit constructor call. Using `ActivatorUtilities` for every handler would add unnecessary reflection-based activation and could select injectable constructors that were not used by the previous registration path. Direct constructors therefore preserve existing default construction semantics more closely. Handler factories can resolve services registered in either the handler collection or the application/window service provider. Handler-collection services retain precedence. The context-aware provider is also propagated through nested handler-collection factories, so a dependency factory can resolve the same current `IMauiContext` or Android `Context` as the top-level handler factory. ## Android context-dependent renderers The legacy Android `ListViewRenderer`, `TableViewRenderer`, and `FrameRenderer` require an `Android.Content.Context` constructor argument. Previously, type-based registration first failed parameterless activation with `MissingMethodException`; `ElementExtensions.ToHandler` then retried with `ActivatorUtilities` and the current `IMauiContext.Context`. Factory registration cannot use that fallback because a factory descriptor has no `ImplementationType`. This PR adds a narrow internal activation path that invokes handler factories with a provider exposing the current `IMauiContext` and its window/activity `Context`, while falling back to the existing handler and application services. These renderers therefore remain deferred without substituting the global application context, which could change theme and inflater behavior. ## Handler type and Hot Reload compatibility `IMauiHandlersFactory.GetHandlerType` is used by legacy ListView cell/header reuse logic to determine whether an existing renderer can be reused. Factory descriptors do not expose an implementation type before activation, so the concrete handler type is cached after the factory is invoked. Hot Reload previously found handler registrations only through `ServiceDescriptor.ImplementationType`. Factory-activated handlers now also record their concrete type against the exact descriptor. Hot Reload consults that mapping when replacing an active built-in handler, without materializing implementation types during initial registration. Empty pre-activation lookups are not cached, allowing a later activation to establish the mapping. Before first activation, factory registrations continue to report no handler type. After activation, the cached type preserves the existing ListView reuse and Hot Reload replacement behavior. ## Scope This targets the `net11.0` development branch. The change is limited to default handler registration and the internal activation paths required to preserve existing Android, DI, ListView, and Hot Reload behavior. ## Validation - Existing Core handler hosting tests on `net11.0`: 26 passed - Existing Controls handler hosting tests on `net11.0`: 9 passed - Focused nested factory test confirms the current `IMauiContext` propagates through handler-collection dependencies - `Controls.Core` Release build for `net11.0-android37.0` - Android-capable local MAUI package set produced at version `11.0.0-preview.7.26464.1` --------- Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> 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! ### Dependency This PR is stacked on #38630, which separately preserves handler constructors referenced through `ElementHandlerAttribute<THandler>` when trimming is enabled. ### Root Cause `Microsoft.Maui.RuntimeFeature.EnableMauiAspire` uses the runtime's `[FeatureSwitchDefinition]` pattern, but normal optimized Android builds previously left `_EnableMauiAspire` unset. As a result, the linker did not substitute the disabled feature and the guarded environment-variable/dev-tunnel implementation—including the source-generated `LocalhostRegex`—survived publishing. ### Description of Change - Resolve `_EnableMauiAspire` and add its `RuntimeHostConfigurationOption` globally from the Core package during MSBuild evaluation, so both Controls and `UseMauiCore` consumers receive the switch without target-order dependencies. - Keep Aspire enabled for non-optimized builds and substitute it away from optimized builds. - Preserve validation of explicitly configured `_EnableMauiAspire` values. - Leave Aspire-enabled builds unchanged. - Add focused MSBuild coverage for default disabled/enabled behavior, explicit optimized-build warnings, and the runtime option's `Value`/`Trim` metadata. - Add URL rewrite coverage for dev-tunnel behavior. - Update the feature-switch documentation for regular optimized builds and the validation opt-out. ### Release Targeting This stack targets `net11.0`. If it cannot be accepted after the .NET 11 RC2 snap, it may need to move to .NET 12. ### Android Release Measurements A fresh RC2 full-package build and stock .NET 11 Android arm64 Release partial-trim comparison of baseline `2eed04f873` against the complete stack (`00267ae424` + `3bde0d5ec3`) plus the XAML/Shadow changes produced: | Output | Baseline | Patched stack | Delta | |---|---:|---:|---:| | Signed APK | 21,428,303 bytes | 21,354,575 bytes | -73,728 bytes | | linked `Microsoft.Maui.dll` | 828,416 bytes | 820,224 bytes | -8,192 bytes | | linked `Microsoft.Maui.Controls.dll` | 1,533,952 bytes | 1,513,472 bytes | -20,480 bytes | | linked `Microsoft.Maui.Controls.Xaml.dll` | 136,704 bytes | 27,648 bytes | -109,056 bytes | In the non-Aspire output, `ConfigureEnvironmentVariables` is reduced to a return-only stub and `LocalhostRegex` is absent. An identical Aspire-enabled publish retains the implementation and regex. `System.Text.RegularExpressions.dll` remains because the sample still reaches regex through `Microsoft.Maui.Controls.ShadowTypeConverter`; `System.Private.Xml.dll` also contains a generated `LanguageRegex`. This PR removes the MAUI Aspire regex root but does not eliminate the framework assembly entirely. ### Validation - `DOTNET_ROLL_FORWARD=Major dotnet test src/Core/tests/UnitTests/Core.UnitTests.csproj --no-restore --filter FullyQualifiedName~HostBuilderAppConfigurationTests --logger 'console;verbosity=minimal' -m:1 -p:PublicApiType=Validate` — 7 passed on `net11.0`. - `DOTNET_ROLL_FORWARD=Major dotnet test src/Controls/tests/Xaml.UnitTests/Controls.Xaml.UnitTests.csproj --no-restore --filter 'FullyQualifiedName~MauiAspireFeatureSwitchMatchesOptimization|FullyQualifiedName~ExplicitMauiAspireFeatureSwitchWarnsInOptimizedBuild' --logger 'console;verbosity=minimal' -m:1 -p:PublicApiType=Validate` — 5 passed on `net11.0`. - Fresh RC2 package builds and arm64 partial publishes succeeded for baseline and the final stack. - The complete two-PR stack passed the combined preview7 XAML + Shadow + Aspire contract validation (8/8). - Linked `CheckBoxHandler` retains its public parameterless constructor, platform creation, connect, and disconnect methods. - A clean physical-device cold launch remained alive with PID 7613 and no `TypeLoadException`. Reusable validation artifacts are at `/Users/simon/.copilot/session-state/6e13df7f-1302-47fa-b0fa-6d104a1dc0a8/files/final-stack-validation`. ### Issues Fixed N/A --------- 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! ## Description Updates only `Microsoft.DotNet.Arcade.Sdk` from `10.0.0-beta.26454.107` to `10.0.0-beta.26461.103` using dotnet/dotnet BAR build `331699` (`20260911.3`) so MAUI's generated Arcade common files include the completed OneLoc credential migration. The generated `eng/common/core-templates/job/onelocbuild.yml`: - removes the unused `GithubPat` / `BotAccount-dotnet-bot-repo-PAT` fallback; - removes the `OneLocBuildVariables` variable-group reference; - requires the project-scoped Ceapex WIF service connection; and - retains short-lived GitHub App authentication for localization PRs. This deliberately does **not** update the .NET SDK, runtime, `10.0.13` libraries, Helix SDK, or other toolsets. Those remain at the versions currently on `main`, preserving the availability fix from #38732. This is generated dependency-flow content; `eng/common` was not edited directly. ## Validation - `darc update-dependencies --id 331699 --name Microsoft.DotNet.Arcade.Sdk --dry-run` - Confirmed no `GithubPat`, `BotAccount-dotnet-bot-repo-PAT`, or `OneLocBuildVariables` references remain under MAUI build configuration. - Preserved the existing `darc-pub-dotnet-dotnet-11741c8` source required by the unchanged `10.0.113` SDK; its feed contains `Microsoft.NET.ILLink.Tasks 10.0.13`. The filtered Darc update otherwise removed this still-required source. - Confirmed the net PR diff leaves `Microsoft.NET.Sdk`, runtime/library packages, Helix, and other toolsets unchanged. - `git diff --check` - Reviewed the complete narrowed diff for correctness. - `darc verify` reports the same three pre-existing failures on clean `main`: duplicate `TizenUIExtensions`, duplicate `XUnitAnalyzers`, and the existing XHarness casing mismatch. ## Tracking - [AB#12313](https://dev.azure.com/dnceng/internal/_workitems/edit/12313) - Source Arcade change: dotnet/arcade#17455 - Source dotnet/dotnet integration: dotnet/dotnet@bb8cc76 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/*
<!-- 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 Forward-port the applicable fixes from #38788 (source head `7c8e9a5d710c2552ed3901caed84bfd87cfcb47f`) to `net11.0`, based on `9c0b29fed261f87ea77b84268768ac9e3d453609`. This is a separate, adapted port, not a merge of the RC2 branch. The original RC2 PR remains open and unchanged. ### Ported - Fail explicitly when the required Xcode is absent instead of silently choosing an unrelated installed version. - Request ARM64 simulator runtimes on Apple Silicon and retain universal downloads on Intel. Keep initial and recovery downloads pinned to the selected Xcode version. - Detect unavailable runtime downloads before destructive CoreSimulator recovery, even when Xcode returns exit code 70. Preserve recovery for actual simulator connection failures. - Run the Helix monitor in the authorized submission pool while preserving its public/internal Linux image demands. - Reuse `BaseTest`'s existing bounded, logged cleanup retries for raster fixtures and dispose every raster tool deterministically. Preserve all 23 test cases and their assertions; exhausted cleanup retries still fail. - Port CI troubleshooting documentation and regression coverage. Adapt SDK/TFM alignment checks to the actual selected versions and exercise both 26.5 and 27.0 simulator-download scenarios. - Wire `eng/pipelines/ci.Tests.ps1` into the existing GitHub Pester gate, including path triggers for its coupled inputs. Preserve read-only `pull_request` execution and disabled checkout credential persistence. This wiring was missing from the source PR. ### Target-specific adaptations and omissions | Source change | net11.0 decision | |---|---| | Coordinated SkiaSharp/HarfBuzz/SVG/ExCSS/System.Memory/System.Buffers pins | Already present unchanged, including SkiaSharp 4.150.1, HarfBuzzSharp 14.2.1.1 and Svg.Skia 5.1.1. | | SDK bootstrap/provisioning/provenance update | Already aligned at `11.0.100-rc.2.26470.103`; preserve these and the target's newer product/Arcade dependencies. Retain a version-independent alignment assertion rather than the Apple-27-only minimum-runtime assertion. | | Apple 27 TFMs and raised native/managed iOS minimums | Not applicable: this target uses Apple `26.5.12253-net11-rc.2`. Preserve 26.5 TFMs, existing deployment minimums, and previous-.NET compatibility targets. Omit the Xcode-27-only deployment-minimum test. | | RC2 .NET 10 Apple compatibility feed | Not copied: net11.0 uses compatibility packs `26.5.10320`, not RC2's `26.5.10322`; preserve the target's existing feeds. | | Switch public macOS jobs to MAUI Xcode 27 RC agents | Not applicable: retain Aces/Xcode 26.5. Baseline [build 1607497](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1607497) logs 14 and 577 confirm successful selection of `/Applications/Xcode_26.5.app` for build and iOS integration jobs. Do not transplant the RC2 pool assertion. | No Provisionator enablement, SDK/TFM downgrades, test skips, weakened assertions, warning suppression, pool-permission changes, or shared-capacity changes. ## Validation on this forward port - Pester **5.9.0**: **104 passed**, zero failed/skipped, across `eng/pipelines/ci.Tests.ps1` and `.github/scripts/Review-PR.Tests.ps1`, including after the workflow wiring update. - The same tests against an isolated copy of the unchanged target baseline produced **11 expected regression failures** and 93 passes; all 104 pass with this port. - Resizetizer raster tests: **23 passed in Debug and 23 passed in Release**, zero failures/skips, on macOS with locally installed SDK `11.0.100-preview.6.26359.118`, targeting `net11.0`. These runs do not substitute for Windows Helix validation or the pinned RC2 CI SDK. - Both changed YAML templates parse; all 12 embedded Bash/script blocks pass `bash -n`. Scoped C# whitespace formatting and `git diff --check` pass. - Pester workflow parsing verifies the new suite and all input path triggers, with its read-only PR isolation intact. - SDK/dependency/feed/TFM/native project files and `ci.yml` are unchanged from the target baseline. New-PR CI results are pending. The green RC2 source build is not claimed as validation of this PR. Full Windows/macOS build, packaging, and device/integration execution remain for this PR's CI. --------- Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.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: * missymessa ## 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>
…8817) <!-- 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 Update `MicrosoftMauiPreviousDotNetReleasedVersion` from `10.0.101` to `10.0.110` (SR11) in `eng/Versions.props`. This updates the previous-major MAUI SDK and template packs bundled with .NET 11 for targeting `net10.0`; it does not change native Apple or Android SDK versions. The SDK and template packages are available from the already-configured `dotnet-public` feed. No feed changes are needed. Validated XML parsing, the existing SDK/manifest token mapping, both previous-major pack versions, and the exact one-line diff with no whitespace errors. No full build was run for this version-only change. ### Issues Fixed Companion to #38816, which remains targeted at `release/11.0.1xx-rc2`. This PR targets `net11.0` independently, without RC2-specific changes. 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/*
This was referenced Sep 24, 2026
auto-merge was automatically disabled
September 24, 2026 11:31
Pull request was closed
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.