Repository navigation
Foundation: import dotnet/maui Tizen history and scaffold standalone repository - #2
Merged
Merged
Conversation
…ing a CancellationToken #26137 (#26180) * Description of Change Able to cancel WebAuthenticator.AuthenticateAsync programatically using a CancellationToken Issues Fixed Fixes #26137 * Implement macOS * Call overload to avoid duplicate code --------- Co-authored-by: Marcel <marcel.silva@hotmail.com.au> Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
* [Essentials] Functionality to check if GPS/Location is enabled * Changed from IsSupported to IsEnabled
…c (#28053) * DisplayAlert -> DisplayAlertAsync * DisplaySheet -> DisplaySheetAsync * Renamed a bit too much * Lets fix publicapi again! * Update PickerHandler.iOS.cs
* ViewExtensions Async suffix consistency * Remove references from codebase * More references
…139) * Make IsVisibleCore and RefreshIsVisibleProperty visible * Make IsVisibleCore and RefreshIsVisibleProperty visible * Make IsVisibleCore and RefreshIsVisibleProperty visible
* improvement: add returnType to SearchBar * fix: remove tizen impl as i can't seem to compile for tizen * Update SearchBarHandler.cs --------- Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com> Co-authored-by: Rui Marinho <me@ruimarinho.net>
* Make DataFlowDirection enum public * Updated Tizen
* Fix method parameter name misspelling * Update PublicAPI.Shipped.txt
* TextTransformUtilites -> TextTransformUtilities * Put back shipped APIs * Update PublicAPI.Shipped.txt * Build errors * Redisable nullable
* Adding the interface * Implement MauiHostEnvironment * Add IHostApplicationBuilder.Properties * Add Metrics * Add environment variables * Add reading env vars from file on Android * Add MAUI ServiceDefaults template * Add DevTunnel to MAUI * Update AppHostBuilderExtensions.cs * env var file might not exist * No ContentRootPath & always EnvName Production * Make MauiMetricsBuilder internal * Try detect debug vs production * Remove MauiMetricsBuilder from PublicAPI * Hardcode environment to production * Make ServiceDefaults template only reference Core * add new template translations to LocProject.json * Undo mistakenly removed localization locks * Add Aspire Service Defaults localization locks * Merge env vars for Android instead of replace * Remove reading Android env vars file * Use generated regex * Use OrdinalIgnoreCase on string compares * Fix spacing * Fix Microsoft.Extensions.Hosting.Abstractions * Update service defaults --------- Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com> Co-authored-by: tj-devel709 <tj.devel709@gmail.com> Co-authored-by: redth <jondick@gmail.com>
* Fix up net10 TODOs in PropertyMapper * Put back Shipped PublicAPI lines * More publicapi * REALLY fix publicapi * Update PublicAPI.Unshipped.txt * no comment * Update PropertyMapper.cs
* Add back TextTransformUtilites * Add EditorBrowsable attribute to TextTransformUtilities methods * Update src/Controls/src/Core/Internals/TextTransformUtilities.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Shane Neuville <shneuvil@microsoft.com> Co-authored-by: Rui Marinho <me@ruimarinho.net> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
# Conflicts: # .config/dotnet-tools.json # eng/Version.Details.xml # eng/Versions.props # global.json # src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ListViewRenderer.cs # src/Controls/src/Core/PublicAPI/net-maccatalyst/PublicAPI.Unshipped.txt # src/Core/src/PublicAPI/net-android/PublicAPI.Unshipped.txt
This reverts commit 581c775.
…(#28872)" (#28873) * Revert "Revert "Cleanup virtual layer measure invalidation (#28756)" (#28872)" This reverts commit d74d679. * Fix compatibility unit test
# Conflicts: # src/Controls/src/Core/VisualElement/VisualElement.cs
* [XC] add IRootObjectProvider this was never meant to be public, but it was. and people are using it - fixes #16881 * ignore case
* Nullable TimePicker.Time * Fix build errors, publicapi & sample * Update NotifiedPropertiesTests.cs * Update TimePickerUnitTest.cs * Put back shipped APIs
# Conflicts: # src/Controls/src/Xaml/PublicAPI/net-android/PublicAPI.Unshipped.txt # src/Controls/src/Xaml/PublicAPI/net-ios/PublicAPI.Unshipped.txt # src/Controls/src/Xaml/PublicAPI/net-maccatalyst/PublicAPI.Unshipped.txt # src/Controls/src/Xaml/PublicAPI/net-tizen/PublicAPI.Unshipped.txt # src/Controls/src/Xaml/PublicAPI/net-windows/PublicAPI.Unshipped.txt # src/Controls/src/Xaml/PublicAPI/net/PublicAPI.Unshipped.txt # src/Controls/src/Xaml/PublicAPI/netstandard/PublicAPI.Unshipped.txt
* Remove InternalsVisibleTo for Toolkit * Make some internals public * Of course its publicapi * And some more
…#27921) * Nullable DatePicker.Date * Nullable MinimumDate & MaximumDate * Update compatibility * Fix tests * Fix more tests * Update DatePickerPage.xaml.cs * Update DatePickerUnitTest.cs * Put back shipped APIs * Fix & Add tests * Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update src/Compatibility/Core/src/Android/Renderers/DatePickerRenderer.cs * Update DatePickerRenderer.cs --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* [Android] Added a platform specific for ripple color * Added a device test * [android] Add global qualified namespace * [build] Fix another namespace --------- Co-authored-by: Rui Marinho <me@ruimarinho.net>
### Description of Change Bring the latest changes from main to net10.0
…ctionConverter (#29276)
* [ci] Update packages using dotnet/dotnet VMR * [ci] Update iOS and other versions * [ci] Update iOS and mac versions * Bump XCode * [iOS] Fix api for WKJavascriptEvaluationResult * [ci] Remove old mono manifest * [ci] update sdk/runtime * darc update-dependencies --channel ".NET 10.0.1xx SDK Preview 4" * darc update-dependencies --id 266521 --------- Co-authored-by: Jonathan Peppers <jonathan.peppers@microsoft.com>
This reverts commit e282185.
* Make internal types used by MAUI Toolkit public * Update AssemblyInfo.cs
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: * github-actions[bot] * 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/*
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: * TamilarasanSF4853 ## 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/*
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: * Ahamed-Ali ## 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.
… (#36443) <!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! <!-- !!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING MAIN. !!!!!!! --> ### Issue Details Color.Equals() returns false when comparing a base Color and a subclassed Color with identical RGBA values, even though ToInt() matches. Regression starting .NET MAUI 11 preview 3. ### Root Cause Color was converted from a class to a record class . Records auto-generate an EqualityContract check in Equals that requires both objects to have the exact same runtime type — so a base Color and a derived DerivedColor never match, even with identical byte values. ### Description of Change Made Color a sealed record class , so it can never be subclassed — every instance now shares the same EqualityContract , restoring pure value-based (ARGB) equality. Also removed the now-illegal virtual modifier on Equals(Color? other) since sealed types can't declare virtual members. ### Issues Fixed Fixes #36034 ### Reference : dotnet/maui#36076 dotnet/maui#36076 (comment)
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: * 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/*
<!-- 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 This is the .NET 11 half of a two-part change. #36883 reverts #35632 on the servicing line; this PR keeps the corrected .NET 11 behavior and adds explicit color APIs so applications no longer have to rely on an implicit tinting guess. #### Background Before #35632, a `SwipeItem` icon was always recolored from the item's background: white on a dark background and black on a light one. That prevented SVG and PNG icons from rendering with their authored colors, which #23074 asked to fix. #35632 corrected the default by only applying implicit tinting to font icons. That default is appropriate for .NET 11, but #36766 exposed the missing capability: when an authored image color no longer contrasts after an `AppThemeBinding` changes the background, there was no way to set an explicit icon tint. The framework had to guess because `SwipeItem` exposed neither icon nor label colors. #### Breaking behavior and migration This is an intentional .NET 11 behavior change from .NET 10 and Xamarin.Forms. Existing PNG, SVG, and other non-font `SwipeItem` icons are no longer automatically recolored white or black to contrast with `BackgroundColor` when `IconColor` is unset; they render with their authored colors. Apps that relied on the implicit contrast tint must set `IconColor` explicitly, typically with `AppThemeBinding`, while apps that want authored image colors need no change. Font icons retain their color/fallback contrast behavior. The servicing line keeps the legacy implicit-tint default. The `t/breaking 💥` and `needs-breaking-change-doc-created` labels track this for the .NET 11 breaking-change documentation and release notes. #### New APIs `SwipeItem` now exposes two bindable properties: - `IconColor` explicitly tints the icon. - `TextColor` explicitly colors the label. When `IconColor` is unset: | Source | Behavior | | --- | --- | | Font icon | Uses `FontImageSource.Color`, then `TextColor`, then a color contrasting the background | | PNG/SVG/other image | Renders with its original colors | When `IconColor` is set, Android, iOS, and MacCatalyst tint the resolved platform image. Windows supports font and packaged-file icons; packaged files use monochrome-mask semantics. URI, rooted, and stream-backed images on Windows, and icons on Tizen, retain their original colors. When `TextColor` is unset, the label uses a color contrasting the background. It keeps the platform default when there is no background or when a font icon already supplies its own color. Both properties support `AppThemeBinding`: ```xml <SwipeItem Text="Delete" IconImageSource="delete.svg" BackgroundColor="{AppThemeBinding Light=White, Dark=Black}" IconColor="{AppThemeBinding Light=Black, Dark=White}" TextColor="{AppThemeBinding Light=Black, Dark=White}" /> ``` #### Implementation - **API compatibility** - `IconColor` is surfaced to handlers through the optional, IntelliSense-hidden `ISwipeItemMenuItemIconColor` companion interface. Existing `ISwipeItemMenuItem` implementers do not acquire a new abstract member, including on `netstandard2.0`. `TextColor` uses the inherited `ITextStyle.TextColor` contract rather than introducing a second interface slot. - **Mapper lifecycle** - Initial and reconnect mapping load each icon source once. Runtime `IconColor`, `TextColor`, and `BackgroundColor` changes flow through their normal mapper keys so custom `AppendToMapping`/`PrependToMapping` logic is preserved. Android and iOS reapply the attached native image for color-only changes instead of decoding or downloading the source again. - **Android** - Reuses untinted drawables without cloning shared state, tracks the exact drawable it tinted because `Drawable.ColorFilter` is not authoritative, and mutates before applying or clearing a `SrcAtop` filter. Bounds are assigned to the actual drawable instance that will be attached, including custom drawables whose `Mutate()` returns a distinct instance. Clearing text color restores the cached themed default, and a missing attached image falls back through the normal `Source` mapper. - **iOS/MacCatalyst** - Font images always use template rendering, including colorless glyphs with no background. Clearing text color restores the native state-specific title color. - **Windows** - Packaged files with an explicit `IconColor` use an explicitly monochrome `BitmapIconSource`; `ms-appx` resource qualification selects the display-scale asset. URI, rooted, stream-backed, and custom-service images remain on their registered image-service pipeline and retain their original colors. Interface-level font image services receive a wrapper only when the effective `IconColor` or fallback `TextColor` differs from the font source’s own color; equal colors pass the original source through without another allocation. Concrete custom font-source registrations receive the original source and retain control of rendering. Per-handler generation and resolved-tint state prevent stale async results and duplicate font renders; custom handlers use a `ConditionalWeakTable` fallback whose read path does not allocate state. Clearing text color removes the local `Foreground` value. - **Tizen** - Reads the unified `ITextStyle.TextColor` value through the shared resolver and restores the platform default when cleared. ### Issues Fixed Contributes to #23074 Related to #36573, #36766, #36883 ### Testing - `Controls.Core.UnitTests`, focused `SwipeViewTests`: **52 passed**, 0 failed. - iOS Core device tests, `Category=SwipeView`: **59 passed**, 0 failed, 1 ignored. - Android Core device tests, `Category=SwipeView`: **67 passed**, 0 failed, 2 ignored. - Added direct handler regressions for: - iOS text-color reset, colorless-font template rendering, runtime tint, and color-only updates without source reloads. - Android tint clearing without shared-drawable bleed, including drawables that do not report applied filters, mutate-before-bounds ordering, and color-only updates without source reloads. - Windows text-color reset, packaged/rooted file handling, URI/custom service preservation, service-rendered tinted fonts, equal-color source pass-through, and concrete custom font-source service preservation. - Initial mapper load suppression and stale same-source generation races. - Missing-native-image fallback on Android and iOS, conditional Android drawable mutation, and duplicate Windows font-render suppression. - Built the MAUI build tasks and the iOS/Android Core device-test targets locally. Windows-specific tests are included for CI; native Windows SDK tools cannot execute on the macOS host. ### Notes for Reviewers - This adds public API and requires API review. - `IconColor` is a `Color` so it composes with `AppThemeBinding` and matches the existing `SwipeItem.BackgroundColor` model. - The default icon policy remains opt-in for image tinting: authored image colors are preserved unless `IconColor` is explicitly set. ---------
…es (#36657) <!-- 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 Forward-ports #35068 from `inflight/current` to `net11.0`. During `MauiApp` initialization, DI-registered Essentials implementations become the backing implementations for their existing static facades. No public API is added. ### Core behavior - Bridges registered Essentials services to their existing `Default`/`Current`/`SetDefault` facades while preserving lazy platform defaults for unregistered services. - Tracks predecessor values and active-owner edges in synchronized per-facade assignment graphs. Overlapping `MauiApp` lifetimes can dispose in any order without restoring disposed services, clobbering newer apps, or losing external replacements. - Keeps `ConfigureEssentials` delegates, DI factory execution, and facade reads outside a process-global lock; each facade graph is serialized by its own `FacadeBridgeState<T>.SyncRoot`, while map-token state and per-app cleanup use dedicated locks. - Makes `MauiApp` explicitly own cleanup before configuration/provider disposal, including custom non-disposable providers and partially initialized apps. - Makes app disposal an atomic one-shot operation across repeated, mixed, concurrent, and reentrant `Dispose()` / `DisposeAsync()` calls. Concurrent callers wait for the winning teardown and observe the same exception; reentrant calls in the active logical flow return without self-deadlocking. - Appends complete cleanup batches across repeated public `InitializeAppServices()` calls, including every repeated AppActions event subscription. - Runs every cleanup best-effort and preserves simultaneous initialization, unsubscription, facade-restoration, configuration-disposal, and provider-disposal failures. - Disposes async-only providers from a context-free ThreadPool hop so synchronous app disposal does not capture the caller's synchronization context. Providers that explicitly require the caller/UI thread during disposal must use `MauiApp.DisposeAsync()`. - Uses non-initializing backing-field access during cleanup so disposal never creates a lazy platform default. ### VersionTracking ownership - Wraps lazy `VersionTracking.Default` creation when DI supplies `Preferences` or `AppInfo`, reusing the exact resolved instances while their facade owners remain active and deferring unregistered fallbacks. - Stores DI-backed `Preferences` and `AppInfo` dependencies through weak, owner-aware sources. After an owner is removed, dependency resolution falls back to the surviving static facade instead of dereferencing a disposed service. - Refreshes the inner `VersionTrackingImplementation` when a fallback facade identity or active owner changes, preventing overlapping apps from retaining another app's disposed services. - Proactively invalidates every active lazy VersionTracking state when a `Preferences` or `AppInfo` owner is removed, releasing stale DI dependencies immediately rather than waiting for the next VersionTracking access. - When multiple apps call `UseVersionTracking()`, later apps take successor ownership of an already initialized app-owned default. Disposing an earlier app therefore cannot clear the facade while a later app is still alive. - Direct DI-registered `IVersionTracking` implementations remain owned exclusively by the app/provider that resolved them. A later `UseVersionTracking()` app does not shadow-own that service, preventing the static facade from retaining it after the original provider disposes it. - Facade assignments explicitly mark whether ownership can be shared: framework-created defaults and owner-aware lazy wrappers can transfer across overlapping app lifetimes; direct DI assignments cannot. - Pre-existing unowned/external `VersionTracking.Default` instances remain outside app cleanup. ### Platform and lifecycle behavior - Bridges `IPermissions`. Android `IActivityStateManager` intentionally remains DI-only because its lifecycle callback registration has no teardown contract. - Preserves native callback contracts for `IAppActions` and `IWebAuthenticator`; incompatible registrations are skipped with a warning. - Starts configured AppActions setup without blocking synchronous `MauiApp.Build()`, allowing custom implementations to await native dispatchers while setup failures are observed and logged. - For Windows and Tizen, forwards configured map tokens to `IPlatformGeocoding`. - Tracks per-geocoder token ownership separately from the Windows process-global `MapService.ServiceToken` chain. - Represents Windows process-global predecessors by assignment identity. When an older applied owner is disposed before newer registrations have reached the native token, direct successors are reparented in registration order and the native token advances to the latest surviving assignment. - When a newer Windows token owner disposes while an older active assignment has not yet pushed its token natively, restores that latest still-active older assignment before falling back to the captured pre-app token. - Restores geocoder and Windows process-global tokens independently during cleanup. If either restore fails, the other is still attempted; one failure is rethrown and multiple failures are aggregated in order. - Rolls back a just-added token assignment when a custom geocoder rejects the configured token during startup. - Uses `global::Windows.Services.Maps` to avoid WinAppSDK namespace shadowing and an internal accessor so tests never assign fake credentials to the native Bing Maps property. ### Test infrastructure hardening - Static-state unit/device collections do not run in parallel. - The default `UseEssentials()` plus explicit `ConfigureEssentials()` path resolves exactly one `EssentialsCleanup` service, proving `TryAddEnumerable` deduplication. - Dispatcher tests cache providers per live `Thread` through weak keys. - Concurrent app-build coverage uses dedicated threads and bounded barriers. - The AppActions non-blocking build regression uses a shared 10-second timeout so contended CI does not create a false failure. ### What not to do - Do not bridge Android `IActivityStateManager` to its static facade without first adding a real lifecycle unregistration contract. - Do not synchronously block or pump `MauiApp.Build()` waiting for AppActions setup; custom implementations may need the native UI dispatcher. - Do not retain strong DI dependencies inside the process-global lazy VersionTracking wrapper after their app owner is removed. - Do not defer stale VersionTracking cleanup until the next access; invalidation must release disposed dependencies immediately. - Do not transfer facade ownership for a direct DI `IVersionTracking` implementation to another app; its lifetime belongs to the original service provider. - Do not infer Windows process-global map-token predecessor ownership from token text alone; duplicate/unapplied values require explicit assignment ownership. - Do not assign fake strings directly to `Windows.Services.Maps.MapService.ServiceToken`; the native setter validates real Bing Maps keys. Use the internal accessor in tests. - Do not replace the atomic disposal gate with a plain boolean; disposal can be concurrent or reentrant. - Do not hold a process-global bridge lock across `ConfigureEssentials` delegates, DI factories, or facade reads; use the per-facade ownership lock for each static mutation. - Do not use public lazy `Default`/`Current` getters to capture prior facade state because that initializes unregistered platform defaults. A future accessor migration must be complete across every bridged facade. ### Issues Fixed Fixes #34100 Part of #34099 ## Validation ### Updated-head focused validation (`26d7b935`) - 165/165 focused Core Hosting tests pass, including concurrent sync/async disposal completion and exception propagation, cross-thread reentrant cleanup, concurrent Essentials delegates, and nested reentrant app builds. - The update commit has tested head `29f3a313` plus `net11.0` `cbb408ff` as parents; the updated-head Hosting suite still passes 165/165. - 15/15 `MainThreadBridgeTests` pass in final improved review. - An independent final code review found no significant correctness issue; all GitHub review threads are resolved and current-head improved review/CI are retriggered. - Windows `Core.DeviceTests-packaged` and `Core.DeviceTests-unpackaged` pass. `NewerMapServiceTokenCleanupRestoresOlderUnpushedPlatformToken` is present in packaged `testResults.xml` with `result="Pass"`. ### Final sequential platform reviews - Android 14771088: 0 errors; prior disposal and map-token findings resolved. `NEEDS_DISCUSSION` was only the CI confidence cap. - iOS 14771292: 0 errors and zero threads; one non-blocking maintenance-coupling warning, with no complete replacement superior to the tested PR. - Mac Catalyst 14771461: 0 errors / 0 warnings / 0 suggestions; expert findings `[]`. - Windows 14771636: 0 errors / 0 warnings / 0 suggestions; deep UI 1/1 passed. ### Prior-head required CI reconciliation - Main 1527086: 24/26; only independently reproduced Debug/Release `.buildtasks` file locks. - Device 1527087: six exact-base Controls/HybridWebView failures. Windows Core work items and the new map-token regression pass. - UI 1527088: 93/99; all six failures are exact-base Picker/Material3/Shell/CollectionView/CV1 failures or unrelated drag/drop instability. - No further rerun adds signal. The red required contexts need maintainer policy bypass after human approval. ### Current-head concurrency fix (`81f1066d8c`) - `TrackInitializedOrOwned` now verifies the facade still references the implementation under its per-type lock and derives ownership from that implementation, preventing a concurrent app from adopting another apps exclusive `IVersionTracking`. - User-implementable `IPlatformGeocoding.MapServiceToken` access runs outside the process-static bookkeeping lock; assignment graph mutation and Windows platform-token owner rebasing remain serialized and rollback-safe. - Added deterministic regressions for exclusive VersionTracking adoption and a map-token setter waiting on a concurrent app build. The portable Hosting suite passes 166/166; Windows-specific execution is covered by replacement device CI. - Full current-head CI builds 1530642 / 1530643 / 1530644 and improved review are active; all review threads are resolved and auto-merge remains armed. ### Current-head lifecycle fix (`c6b28946b4`) - `MauiApp.InitializeAppServices()` now participates in the app disposal lifecycle: new calls are rejected after disposal begins, disposal waits for already-running initialization, and disposal from the active initialization flow fails fast instead of self-deadlocking. - `EssentialsCleanup` synchronizes facade-cleanup and AppActions subscription registration and refuses registration after cleanup. - Non-reentrant `Dispose`/`DisposeAsync` calls made after a failed teardown now rethrow the recorded exception instead of missing the completion window. - Five deterministic lifecycle/exception regressions were added; the complete Hosting suite passes 171/171. Full current-head CI builds 1530730 / 1530731 / 1530732 and improved review are active; auto-merge remains armed. ### Windows device-test correction (`f0718f4e24`) - The map-token concurrency regression now builds no-default `MauiApp` instances and explicitly registers Essentials, isolating the intended lock behavior from the Windows `MauiCoreInitializer` UI-dispatcher requirement on `Task.Run`. - The prior Windows device failure occurred before either custom map-token setter ran; all adjacent map-token cleanup/restoration tests passed. Production behavior is unchanged by this follow-up. - Full replacement CI builds 1530799 / 1530800 / 1530801 and improved review are active; auto-merge remains armed. ### Final static-state hardening (`98909ead59`) - Shared map-token implementations now use versioned desired-state reconciliation with state rooting across getter, rollback, removal, and cleanup; concurrent stale writers loop to the latest assignment/base token. - A deterministic same-instance concurrent-disposal regression verifies original-token restoration and assignment/state eviction. - `VersionTracking.Default` and `SetDefault` now share an initialization lock, with a 12-thread identity regression preventing concurrent lazy instances from clobbering a DI bridge. - The expanded Hosting suite passes 172/172. Final CI builds 1530938 / 1530941 / 1530942 and improved review are active; all review threads are resolved and auto-merge remains armed. ### VersionTracking publication hardening (`3f2c472e61`) - Lazy initialization and `SetDefault` now pair the existing `Volatile.Read` fast paths with `Volatile.Write`, safely publishing fully initialized VersionTracking implementations to concurrent readers. - The concurrency regression executed successfully in current-head main CI. ### Child-flow initialization scope fix (`9564e650b6`) - Replaces the mutable `AsyncLocal` depth object with per-entry linked scope frames, preventing a `Task.Run` child initialization from mutating the parent flow's disposal guard. - Disposal scans inherited scope ancestors so it still rejects a child-flow dispose while any captured parent initialization remains active, but waits normally after the parent scope has exited. - The exact regression failed before the fix and passes afterward; both child-flow lifecycle regressions pass, along with all 174 Hosting-category tests. - Current-head improved review and full replacement CI are active; all review threads remain resolved and auto-merge remains armed. ### Windows geocoding cleanup correction (`994581549c`) - `RestoreGeocoding` now restores the private static backing field directly instead of building and disposing a temporary `MauiApp` that could restore the leaked predecessor again. - A Windows device regression seeds a leaked geocoder and verifies cleanup restores the original facade. - The Windows device project is locally blocked by unavailable WinUI references on macOS; current-head Windows device CI is the execution authority for this conditional test. ### Bridged facade publication hardening (`23a2d386d7d`) - Replaces unsynchronized lazy `??=` publication and plain setters across every DI-bridged Essentials static facade with one shared per-interface synchronization helper. Initialized reads retain a `Volatile.Read` fast path; first construction and all setter writes serialize on the same lock. - Holds that facade lock together with `FacadeBridgeState<T>.SyncRoot` across predecessor capture, DI installation, current-owner verification, and cleanup restoration. A concurrent fallback can no longer clobber DI, and cleanup cannot restore a stale predecessor over an external replacement. - Migrates `VersionTracking` to the same helper so its bridge lock now protects the actual backing field rather than a separate synchronization domain. Factory construction is non-speculative and preserves a value installed reentrantly during construction. - Adds deterministic Preferences regressions for both the direct setter lost-write and the bridge predecessor race. The direct regression fails with the original unsafe `??=` pattern; the bridge regression rejects the speculative CAS design that could capture a stale predecessor. - A full constructor/lock-order audit found no current cycle, including Windows `AppInfo` and `DeviceDisplay` dependencies on `WindowStateManager`; the helper documents that constructor-time facade dependencies must remain acyclic. Independent MAUI expert and adversarial reviews found no blocking issue. - Final local validation: Hosting 176/176, Essentials 464/464, and all locally available Essentials TFMs build with 0 warnings and 0 errors. Full current-head CI builds 1532455 / 1532456 / 1532457 and improved review are active; auto-merge is armed with the required merge-commit method. ### Windows WebAuthenticator lifecycle guard (`98ed841d415`) - Extends the native `IWebAuthenticator` lifecycle-contract guard to Windows. `Platform.OnAppInstanceActivated` calls `WebAuthenticator.Default.OnAppInstanceActivated`, which casts through `AsPlatformCallback`; a DI implementation without `IPlatformWebAuthenticatorCallback` must therefore not replace the static default. - Adds a Windows device regression proving incompatible implementations are skipped, callback-capable implementations are bridged, and disposal restores the original facade. - Portable validation remains green: Hosting 176/176, Essentials 464/464, and all locally available Essentials TFMs build with zero warnings and errors. The Windows device project cannot build on this macOS host because WinUI/Win2D references are unavailable, so fresh Windows CI is the execution authority for the conditional regression. - Current-head main CI `1532636` succeeded. Device CI `1532638` executed `WebAuthenticatorBridgeRequiresWindowsLifecycleContract` successfully in packaged and unpackaged Core work items; all Windows Core, Essentials, Graphics, and MauiBlazorWebView work items passed. Remaining device reds are baseline Controls failures plus an isolated Mac tooltip sibling-pass. UI `1532637` is fully classified: persistent failures are exact-base Controls failures, and the final WinUI shard failed Appium fixture reset before test bodies ran. Android review `14813672` is code-clean; Windows review `14814569` remains active. Auto-merge remains armed with the merge-commit method. ### Async disposal responsiveness (`cc1107edfab`) - Keeps synchronous `Dispose()` semantics unchanged, but prevents the winning `DisposeAsync()` caller from blocking synchronously in `Monitor.Wait` while app-service initialization is in flight. `DisposeAsync()` now returns an incomplete operation and awaits initialization from a context-free worker before cleanup/provider disposal. - Preserves the one-shot disposal gate, reentrant initialization rejection, loser completion/exception propagation, and cleanup ordering. - Adds regressions proving `DisposeAsync()` returns promptly while initialization remains blocked and that reentrant async disposal from `InitializeAppServices()` throws instead of deadlocking. The responsiveness regression fails against the prior implementation and passes with the fix. - Final local validation: targeted async/sync lifecycle slice 4/4, Hosting 178/178, Essentials 464/464, and all locally available Essentials TFMs build with zero warnings and errors. Independent adversarial review found no blocking issue across wakeup races, sync/async winner/loser interleavings, reentrancy, and completion publication. - Exact improved review and full current-head CI builds `1532809 / 1532810 / 1532811` were triggered; auto-merge remains armed with the merge-commit method. ### Map-token recipient ownership (`3c0b84c7b00`) - Removes the post-bridge `Geocoding.Default` read that allowed a concurrent `MauiApp.Build()` to redirect this app map token to another app geocoder. Windows/Tizen now pre-resolve the DI geocoder and apply explicit tokens only to the geocoder owned by this initialization. - Captures fallback geocoding under the facade ownership/implementation locks only when needed. Inherited tokens are accepted only from direct, unowned fallback implementations; map-token epoch/state and facade ownership checks prevent adopting another app active or bridged token. - Preserves the previous null-token behavior: `UseMapServiceToken(null!)` remains equivalent to no configured token. - Adds a deterministic Windows concurrency regression that pauses app A after its geocoder bridge, lets app B replace the process-global facade, and proves app A token still applies to app A while app B remains untouched. - Portable validation remains green: Hosting 178/178, Essentials 464/464, and all locally available Essentials TFMs build with zero warnings and errors. Independent adversarial review found no blocking ownership, epoch, lock-order, cleanup, or test issue. - Pending base-token capture now uses `Monitor.Wait/PulseAll` on the existing token lock instead of busy-spinning if a user geocoder getter stalls. Exact improved review and full current-head CI builds `1533049 / 1533050 / 1533051` were triggered; auto-merge remains armed with the merge-commit method. ### MainThread facade synchronization (`74503fab322`) - Routes direct custom MainThread replacements through the same per-type synchronization used by DI bridge capture and cleanup, preventing a disposal-time predecessor restore from clobbering a concurrent external setter. - Adds a deterministic regression that fails against the prior volatile-only setter and passes with the synchronized setter; the full MainThread bridge slice passes 16/16. - Exact improved review and full current-head CI builds `1533086 / 1533087 / 1533088` were triggered; auto-merge remains armed with the merge-commit method. ### Windows device analyzer compatibility (`0cc58f52337`) - Fixes the PR-specific `xUnit2031` build failure from device CI `1533088` by using `Assert.Single(collection, predicate)` in the new Windows map-token concurrency helper. The diagnostic points directly to this PR-added test; the prior head’s Windows leg had succeeded, while the current merge build surfaced the analyzer failure. - Local Windows publish cannot run on this macOS host because the Win ARM64 runtime pack is unavailable. Fresh current-head CI builds `1533131 / 1533132 / 1533133` and exact improved review `14817673` are active; the Windows device build is the authoritative validation. Auto-merge remains armed with the merge-commit method. ### Current-head CI and Android review (`0cc58f52337`) - Windows device build and execution are validated in CI `1533133`: packaged and unpackaged `Core.DeviceTests` passed with 0 failures. `ConcurrentBuildAppliesMapServiceTokenToOwningGeocoder`, `NullMapServiceTokenBehavesAsUnconfigured`, and `WebAuthenticatorBridgeRequiresWindowsLifecycleContract` each passed in both modes. All Essentials, Graphics, and MauiBlazorWebView Windows work items also passed. - Device failures are unrelated Controls-only baseline failures: the same six `InvokeJavaScriptMethodThatThrows*` message expectations fail on iOS CoreCLR/Mono, MacCatalyst, and Windows. Main `1533131` failed after execution in the Azure `PublishTestResults` Node task (`libuv` assertion, exit `57005`); UI `1533132` includes a checkout DNS/RPC reset. UI replacement is `1533240`; main replacement `1533241` hit a cross-PR transient `.buildtasks` staging failure, so main was rerun as `1533276`. Device is not being rerun. - Android improved review `14817673` found no actionable code findings and selected the reviewed PR as the best candidate. Its gate was inconclusive only because XHarness reported `APP_CRASH`; the with-fix unit slices passed. Windows review `14818091` materialized an unrelated CI-script diff and was discarded; a direct Windows review of the actual PR head identified the rollback race fixed below. Auto-merge remains armed with the merge-commit method. ### Failed map-token apply rollback (`35eb31006dc`) - Fixes a Windows ownership hole when a successor geocoder publishes its global token, blocks, and then throws after the predecessor app disposes and rebases the owner graph. The old failed-apply rollback removed the successor assignment but could leave its process-global token orphaned. - Failed-apply rollback now removes/rebases the assignment and restores the guarded Windows token atomically under `s_mapTokenLock`, using the same restoration helper as normal cleanup. Platform-restore and instance-reconcile failures are preserved alongside the original apply exception. - Adds a deterministic Windows regression for the predecessor-dispose/failing-successor interleaving. Portable Hosting validation passes 179/179; Windows CI is the execution authority for the conditional regression. - Exact improved review `14819460` and full current-head CI builds `1533460 / 1533461 / 1533462` are active. Auto-merge remains armed with the merge-commit method. ### Dispatcher test-provider null-cache hardening (`4df7a324e37`) - Makes `SkipDispatcherCreation` a transient test option: while set, the provider returns `null` without publishing a null holder for the pooled thread. Once reset, the same thread can create and cache its dispatcher normally. - Strengthens the existing pooled-thread regression; it fails against the old null-caching behavior and the full Dispatcher slice passes 9/9. - Exact current-head improved review `14820481` and CI builds `1533544 / 1533546 / 1533548` are active; prior-head reviews were canceled after the documentation-only follow-up. Auto-merge remains armed with the merge-commit method. ### Initialization and provider-teardown lifetime fixes (`65f01d6a6cf`) - Failed repeated `InitializeAppServices()` calls now rollback only their local pre/post cleanup batch, leaving prior successful registrations intact and allowing later retries. - AppActions unsubscription and map-token cleanup run before provider disposal; DI-backed static facades remain available to provider-owned services during `Dispose`/`DisposeAsync` and restore through a separate post-provider phase afterward. - Failed synchronous `Build()` disposes async-only providers from a context-free ThreadPool hop and waits for provider disposal plus post-provider cleanup before rethrowing, so no bridged facade remains published after failure returns. - Deterministic regressions cover retry after failed repeated initialization, sync/async facade use during provider teardown, post-provider cleanup ordering, and failed-build rollback visibility. - Exact improved review `14823516` and current-head CI builds `1533747 / 1533748 / 1533749` are active. Auto-merge remains armed with the merge-commit method. ### VersionTracking package isolation (`28b6707ce2d`) - Makes the VersionTracking preferences shared name instance-owned from the injected `IAppInfo.PackageName`, preventing overlapping apps from storing history under the first app package namespace. - Adds a deterministic two-app regression using one preferences store and distinct package IDs; it fails against the former static namespace and passes with the fix. - Full Hosting validation passes 185/185. Exact improved review is active; fresh CI will validate the new head. Auto-merge remains armed with the merge-commit method. ### App-owned SecureStorage and MediaPicker namespaces (`b972b8685c6`) - SecureStorage aliases are instance-owned instead of process-static. An app that bridges `IAppInfo` but not `ISecureStorage` gets a lazy app-owned SecureStorage facade keyed to its package; overlapping apps remain isolated and fallback state restores correctly. A registered custom `ISecureStorage` remains authoritative. - Android MediaPicker recovery uses the immutable Android application package for its durable preferences namespace, so bridged `IAppInfo` changes cannot redirect an in-flight recovery operation. - Deterministic regressions cover preinitialized/overlapping SecureStorage facades and changing MediaPicker package identities. The SecureStorage regression fails against the prior bridge and passes with the fix. - Validation: Hosting 186/186, Essentials 464/464, all locally available Essentials TFMs build with zero warnings/errors, Android device build succeeds, and the new MediaPicker plus updated SecureStorage tests pass. Exact improved review and fresh current-head CI are active; auto-merge remains armed with the merge-commit method. ### SecureStorage lifecycle hardening (`057d6675d72`) - Preserves Apple `DefaultAccessible` across app-owned facade replacement without eagerly constructing the inner implementation or invoking user code under facade locks. - Makes unpackaged Windows SecureStorage state process-shared and synchronized so restored/overlapping facade instances cannot overwrite secrets from stale snapshots; the existing file format and location remain unchanged. - Confirms a registered custom `ISecureStorage` remains authoritative when `IAppInfo` is also registered, and tests the alias actually used by the materialized implementation. - Serializes Android MediaPicker recovery tests that mutate `AppInfo.Current`, eliminating cross-collection static-state races. - **Migration contract:** SecureStorage namespace follows the bridged `IAppInfo.PackageName`. Apps changing that value must migrate existing secrets or register their own `ISecureStorage`; prior records are not automatically copied between package namespaces. - Validation: Hosting 187/187, Essentials 464/464, all local Essentials TFMs build with zero warnings/errors, and the Android device test project builds successfully. Exact improved review and fresh CI are active; auto-merge remains armed with the merge-commit method. ### SecureStorage concurrency and retry hardening (`7a64a6f82b7`) - Resolves bridged `IAppInfo.PackageName` before entering process-static facade locks, preserving the no-user-code-under-global-lock invariant. - Materializes Apple SecureStorage under the accessibility lock, eliminating the `Lazy<T>.IsValueCreated` publication window and preserving updates on the actual inner implementation. - Loads unpackaged Windows shared state lazily under its process lock; transient path/open failures leave the state uninitialized so later SecureStorage calls can retry instead of hitting a cached `TypeInitializationException`. - Adds Apple device regressions for implementation/wrapper predecessor carry-forward and post-materialization updates, plus Windows device coverage proving unpackaged instances share current state. - Validation: Hosting 187/187, Essentials 464/464, all local Essentials TFMs build clean, and Android/iOS/MacCatalyst Essentials device-test projects build successfully. Exact improved review and fresh CI are active; auto-merge remains armed with the merge-commit method. ### Windows SecureStorage path binding (`a67b721269a`) - Binds the process-shared unpackaged SecureStorage snapshot to the exact app-data path from which it was loaded. A bridged `IFileSystem` path change now loads that location before any write instead of serializing a snapshot from another path over it. - Failed path loads leave the existing cached path and state unchanged, with the requested path retryable on the next call. - Adds a Windows device regression that switches between two app-data roots and verifies independent persisted state; SecureStorage device tests now use the globally non-parallel Essentials static-state collection. - All locally available Essentials TFMs continue to build with zero warnings and errors. Exact improved review and fresh CI are active; auto-merge remains armed with the merge-commit method. ### Stable Android MediaPicker recovery namespace (`05ba44d990f`) - Uses `Application.Context.PackageName` for the durable MediaPicker recovery store. AndroidX callbacks and recovery or clear paths therefore remain on one namespace even if another `MauiApp` temporarily bridges a different `IAppInfo`. - Updates the Android regression to change `AppInfo.Current` twice and assert the store namespace remains the immutable Android application package. - All local Essentials TFMs and the Android device project build clean; the new namespace test and full MediaPicker recovery collection pass at runtime. Exact improved review and fresh CI are active; auto-merge remains armed with the merge-commit method. ### Final async ownership hardening (`9fad299a58f`) - Replaces the disposal `AsyncLocal<bool>` with a shared mutable scope frame. Reentrant child flows still avoid self-deadlock while teardown is active, but child flows that outlive teardown now observe completion and replay the recorded exception. - Serializes configured AppActions publication through an app-owned assignment queue. Superseded or disposed writes are skipped, and removing a newer owner reapplies the surviving predecessor so completion order cannot publish stale global shortcuts. - Stores Android MediaPicker recovery records directly in native app-private SharedPreferences instead of the bridged `IPreferences` facade, preserving process-death recovery across custom/in-memory preference registrations and overlapping app lifetimes. - Captures the unpackaged Windows SecureStorage write path before DPAPI encryption awaits, preventing a concurrent `IFileSystem` bridge from redirecting ciphertext to another app-data directory. - Keeps Apple accessibility carry-forward limited to framework-owned predecessors because wrapper construction holds the SecureStorage facade locks; arbitrary custom platform getters are not invoked under those locks. Explicitly registered `ISecureStorage` implementations remain authoritative. - Retains the explicit SecureStorage migration contract. Automatic native-alias fallback was rejected because it exposes records across intentionally distinct namespaces and its mutation cleanup deletes newly written values on unpackaged Windows, where aliases share the physical store. - Validation: hosting suites 93/93; Essentials unit tests 464/464; Android, iOS, and MacCatalyst Essentials device projects build; Windows Essentials C# builds with zero warnings/errors; the new Android durable-recovery regression passes on-device. The local Android runner still executes four unrelated Launcher `mailto:` failures despite the MediaPicker category filter. ### AppInfo / VersionTracking reentrancy ownership (`37c4516b8a2`) - Installs the owner-aware lazy `VersionTracking` facade before invoking the DI-provided `IAppInfo.PackageName` getter for AppInfo-owned SecureStorage. - Prevents a reentrant `PackageName` getter from materializing an unowned `VersionTrackingImplementation` that captures app-owned `Preferences` / `AppInfo` and could be restored after those services are disposed. - Returns the explicitly resolved `ISecureStorage` from the bridge so a registered custom implementation still wins exactly; AppInfo-owned fallback is created only when no DI `ISecureStorage` exists. - Adds `AppInfoPackageNameReentrancyUsesOwnedVersionTrackingFacade`. A surgical verification that reverts only this production ordering delta makes the test fail by observing a stale `VersionTrackingImplementation`; restoring the fix passes. - Validation: Core `netstandard2.0` Release builds with zero warnings/errors; full hosting suites pass 94/94; focused red/green verification passes. ### Custom Apple SecureStorage accessibility inheritance (`1045188fcd0`) - Preserves `IPlatformSecureStorage.DefaultAccessible` when an AppInfo-owned wrapper replaces an unowned custom Apple SecureStorage predecessor. - Captures predecessor identity under framework ownership/facade locks, invokes the custom accessibility getter only after releasing those locks, and revalidates identity plus unowned status inside `TrackAndSet` before applying the captured value. - Keeps direct DI `ISecureStorage` precedence unchanged and retains framework-owned predecessor inheritance in `AppInfoSecureStorage`. - Adds `AppInfo_Bridge_Inherits_Custom_Platform_Default_Accessible_Outside_Facade_Lock`, which asserts both the inherited `WhenUnlockedThisDeviceOnly` value and that app code is not invoked under the SecureStorage facade lock. - Validation: clean iOS run executes the regression and passes 245/245; surgically reverting only the production accessibility delta makes exactly this test fail with `AfterFirstUnlock`; shared `netstandard2.0` and hosting 94/94 remain green. ### AppInfo / SecureStorage stale-owner handoff gate (`bdc0f26e054`) - Adds a dedicated narrow handoff gate around the dependent AppInfo-derived SecureStorage publication. - Captures the exact `FacadeAssignment<IAppInfo>` owner while publishing DI AppInfo, resolves user `PackageName` outside all facade locks, then revalidates that the same owner is still current before publishing SecureStorage. - Prevents an older app blocked in `PackageName` from overwriting a newer app’s SecureStorage namespace after the newer app wins AppInfo ownership. - Preserves the previously added SecureStorage predecessor ownership and Apple accessibility capture/revalidation logic. - Adds `ConcurrentAppInfoPackageNameCannotStalePublishSecureStorage`; surgical verification fails without the gate and passes with it. Core `netstandard2.0` and full hosting 96/96 remain green. ### Final AppInfo/SecureStorage ownership reconciliation (`28619959685`) - Unifies immediate and deferred AppInfo-derived SecureStorage publication through one owner-validated installation path. If `IAppInfo.PackageName` yields while another app or direct facade writer wins, the original app keeps a lifetime-scoped pending installation instead of permanently skipping its namespace. - Captures and revalidates the exact SecureStorage predecessor before publishing AppInfo, keeps app-provided `PackageName` and custom Apple accessibility getters outside process/facade locks, and serializes the no-user-code paired publication against direct setters. - Preserves newer bridge-owned and unowned SecureStorage replacements. AppInfo and SecureStorage cleanup retry only eligible pending work, while out-of-order disposal rebases pending predecessor ownership. - Releases disposed predecessor assignments after rebasing or successful installation, preventing a live successor app from rooting a disposed provider-owned SecureStorage service. - Carries the unowned Apple platform predecessor's `DefaultAccessible` through intermediate wrapper disposal, preserving keychain accessibility during deferred reconciliation. - Adds deterministic coverage for both app-disposal orders, immediate/deferred direct writers, newer secure-only apps, nested predecessor disposal, GC release, and Apple accessibility inheritance. - Final local validation: Core Hosting 182/182, Essentials 464/464, Core `netstandard2.0` clean, Android and MacCatalyst builds clean, and final iOS device XML reports 249 total / 248 passed / 0 failed / 1 skipped. Current-head improved review and `maui-pr` CI are active; merge-commit auto-merge remains armed. ### SecureStorage and AppActions lifecycle completion (`ffbe5cd36e6`) - Windows unpackaged SecureStorage now captures one immutable owning app-data path and uses it for reads, writes, removes, and clear operations. App-owned `IFileSystem` participates in derived SecureStorage ownership only when the backend is actually file-backed; packaged Windows remains alias/container-based and is not affected by FileSystem-only registrations. - AppInfo/FileSystem dependency assignments and the SecureStorage predecessor are established and validated together. The app-data path is captured before potentially reentrant `IAppInfo.PackageName`, then carried through lazy/deferred wrapper creation. - AppActions setup remains non-blocking but is no longer globally wedged by a hung custom `SetAsync`: removed queued assignments abort promptly, each assignment is single-flight, and stale late completion records exactly one replay request for the surviving current assignment. - Adds deterministic AppActions regressions for hung disposal, queued removal, and in-flight replay ordering, plus Windows device coverage for immutable path ownership, FileSystem-only packaged/unpackaged behavior, and PackageName reentrancy. - Final local validation: Core Hosting 184/184, AppActions 8/8, Essentials 464/464, Core/Essentials `netstandard2.0` clean, Windows Essentials C# build clean, and iOS/MacCatalyst/Android Essentials+Core builds clean. Current-head Android improved review `14844761` and `maui-pr` build `1536225` are active; merge-commit auto-merge remains armed. ### Strict AppActions publication and Windows storage migration (`aa32792df60`) - AppActions now uses one coalescing process-global worker. It strictly waits for each physical native `SetAsync` to complete before starting the latest surviving pending assignment, preventing overlapping OS-global shortcut writes while retaining only the unavoidable in-flight assignment plus one pending owner. - Worker exit is exception-safe and restarts if work arrives during shutdown. Failure-logging exceptions are surfaced through `Trace` without wedging future assignments; disposed queued implementations can be collected behind a hung predecessor. - AppInfo-derived unpackaged Windows SecureStorage uses `Settings/<SHA256(alias)>/securestorage.dat`, isolating distinct package identities that share one app-data root. Default/unbridged construction keeps the historical `Settings/securestorage.dat` path. - On first alias-scoped access, existing legacy data is copied forward atomically using a unique temporary file and same-volume replace, while the legacy file remains intact for default callers. - Adds deterministic no-overlap, GC-retention, throwing-logger, alias-isolation, historical-path, and migration regressions. - Final local validation: Core Hosting 185/185, AppActions 9/9, Essentials 464/464, Core/Essentials `netstandard2.0` clean, Windows Essentials C# build clean, and iOS/MacCatalyst/Android Essentials+Core builds clean. Current-head Android review `14845391` and `maui-pr` build `1536315` are active. ### Current-base integration and Passkeys coverage (`fb98862d5c5`, `2297fca0c38`) - Merges current `net11.0` normally into the PR branch (no rebase or history rewrite), bringing the newly shipped Passkeys API and latest base changes into local/CI validation. - Adds `IPasskeys` to the owner-aware DI-to-static facade bridge and updates `Passkeys.Default` / `SetDefault` to the shared synchronized `EssentialsImplementation.GetOrCreate/Set` pattern. - Adds direct identity coverage proving a DI-registered `IPasskeys` backs `Passkeys.Default`; lazy default behavior remains unchanged when unregistered. - Validation on the merged base: Core Hosting 188/188, Passkeys bridge regression 1/1, Essentials 472/472, Core/Essentials `netstandard2.0` clean, Windows Essentials C# build clean, and iOS/MacCatalyst/Android Essentials+Core builds clean. Current-head Android review `14845706` and `maui-pr` build `1536345` are active. ### Final ownership and teardown review follow-up (`4cdbf75b561`) - Failed initialization now preserves bridged Essentials facades through asynchronous provider disposal and restores them only after provider-owned async disposables complete, matching normal `MauiApp.DisposeAsync()` ordering. - Implicit SecureStorage retains the platform's native package identity. A custom DI `IAppInfo.PackageName` no longer changes the alias or hides secrets written before the bridge existed; apps that intentionally need a custom namespace must register `ISecureStorage`. - On unpackaged Windows, an AppInfo-only bridge uses the native app-data directory instead of an ambient `FileSystem.Current` owned by another app. A FileSystem-only bridge still uses its explicitly registered directory, with owner validation before publication. - AppActions keeps one physical writer attached through each uncancellable `SetAsync`. Later owners do not start until the prior write completes, so an in-flight stale operation can never overwrite a newer publication. - The process-global bridge fixture now resets `Passkeys.Default`, preventing state leakage between tests. - This section supersedes the earlier custom-PackageName SecureStorage migration/handoff and detached stale-AppActions-worker statements in the chronological history above. - Final local validation: Core unit tests 946 total / 943 passed / 0 failed / 3 skipped; focused hosting tests 109/109; iOS and Android Essentials device-test apps build successfully; Windows Essentials C# builds cleanly. Windows device execution remains CI-only. ### Human re-review deterministic cleanup follow-up (`6f384a337b3`) - Failures inside the first `EssentialsInitializer` pass now run pre-provider cleanup immediately but register partial facade ownership for post-provider restoration. Failed repeated `InitializeAppServices()` calls still rollback their local batch immediately. - Failed `MauiAppBuilder.Build()` no longer leaves async-only disposal fire-and-forget: synchronous disposal uses the existing context-free ThreadPool hop, completes provider teardown, restores facades, and preserves initialization/cleanup exception aggregation before returning failure. - `IAppActions.SetAsync` now documents that custom implementations must complete their returned task. Because the interface has no cancellation token, strict non-overlapping publication intentionally keeps successors queued behind an incomplete physical write; a deterministic regression proves successor build/disposal remains live without claiming cancellation. - Final local validation: Core Hosting 210/210; Core and Essentials `netstandard2.0` builds succeeded with 0 warnings and 0 errors. --------- Co-authored-by: Copilot <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: * 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. Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
Establishes the licensing position for this repository before any dotnet/maui code is imported, so the license is in place at the moment the imported history lands rather than being applied retroactively. LICENSE is MIT, matching dotnet/maui, and preserves the .NET Foundation copyright alongside this repository's own. THIRD-PARTY-NOTICES.md records the Apache-2.0 licensed Samsung dependencies (TizenFX and Tizen.UIExtensions) that this backend builds against. Both are consumed only as published NuGet packages and SDK workload packs; no Samsung source is copied into this repository. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Brings in the Tizen backend's original commit history from dotnet/maui, filtered to Tizen-only paths. This commit is deliberately mechanical: no file is moved, renamed, or edited here. All editorial changes happen in the following normalization commit, so that reviewers can audit the rewrite independently of our restructuring choices. Baselines (pinned SHAs, not branch names -- origin/net11.0 advanced from ee4d06cde6 to bedd1b18b7 while this import was being prepared, which is precisely why a branch name would not be reproducible): source baseline ee4d06cde6b49e297631b08426a33fb34f3152ef (net11.0, 2026-08-18) behavior baseline c1f4f7d879f6126029009902289efd6a4bb1bda9 (tag 9.0.120) required ancestor 0b3bb76d2dd68d76b7c1302f43a76270d5949564 (PR #36657) The required ancestor carries the Essentials/MainThread extensibility work and is verified by the import script, which hard-fails if it is not reachable. Note that it is NOT on dotnet/maui main; it lives on net11.0. Tag 9.0.120 is retained as upstream/9.0.120 because it is the only ref that still carries the src/Compatibility Tizen sources -- those were deleted upstream on net11.0, so a net11.0-only import would silently lose them. Result of the filter: 1236 commits retained, from 121 distinct authors 316 files at tip history reaches back to 2016 (Xamarin.Forms era) provenance PRs #2360 and #9619 both present Original authors, dates, and commit messages are preserved so that contributors keep attribution in this repository. Upstream LICENSE.txt and THIRD-PARTY-NOTICES.TXT are retained inside the imported history so that the licensing lineage is verifiable from the git log itself, not only from our own notice files. Reproduce with: eng/import/filter-maui-tizen.sh Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Reshapes the raw dotnet/maui import into this repository's layout and documents where the code came from. This is deliberately a separate commit from the import. The import commit is mechanical and machine-reproducible; this one encodes editorial decisions about where things live. Keeping them apart lets a reviewer verify that nothing was smuggled in during the filter by diffing the import commit on its own. Every operation is a pure `git mv`. The diff is 316 renames with zero content changes, so `git log --follow` keeps working across the restructure and file count is unchanged. Layout mapping: src/Core/src/** -> src/Maui.Tizen.Core/** src/Core/maps/src/** -> src/Maui.Tizen.Maps/Core/** src/Controls/Maps/src/** -> src/Maui.Tizen.Maps/Controls/** src/Controls/src/Core/** -> src/Maui.Tizen.Controls/Core/** src/Controls/src/Xaml/** -> src/Maui.Tizen.Controls/Xaml/** src/Essentials/src/** -> src/Maui.Tizen.Essentials/** src/BlazorWebView/src/Maui/** -> src/Maui.Tizen.BlazorWebView/** src/Graphics/src/** -> src/Maui.Tizen.Graphics/** src/SingleProject/Resizetizer/src/**-> src/Maui.Tizen.Build.Tasks/** src/*/samples/** -> samples/** src/Controls/tests/** -> tests/Controls/** eng/common/cross/** -> eng/cross/** Inner `Tizen/` directories and `.Tizen.cs` suffixes are kept even though every file here is Tizen-specific and they are therefore redundant. The MSBuild compile-item conventions inherited from src/MultiTargeting.targets still key off those names, and flattening them would convert a clean rename-only diff into large content churn. That cleanup belongs with the handler workstream. Upstream LICENSE.txt and THIRD-PARTY-NOTICES.TXT move to docs/upstream/ so they cannot be confused with this repository's own LICENSE and THIRD-PARTY-NOTICES.md, while remaining in the tree for licensing lineage. PROVENANCE.md records the pinned baselines, the two provenance PRs (#2360 and #9619), contributor attribution, the import method, and how to reproduce it. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Completes migration Phases 0-1 by giving the imported sources a repository to live in: build configuration, package project skeletons, CI, and the documented rules that govern the extraction. Build configuration global.json SDK 11.0.100-preview.7 Directory.Build.props net11.0-tizen11.0, workload detection, package metadata Directory.Build.targets compile conventions and the Tizen workload gate Directory.Packages.props central package management nuget.config nuget.org + dnceng dotnet11, with package source mapping Maui.Tizen.slnx solution Target framework is net11.0-tizen11.0 (TizenFX API15, Samsung.Tizen.Ref.API15 15.0.0.19396, tizen-manifest api-version 11). Note this is NOT dotnet/maui's tizen7.0, which the current Samsung SDK no longer lists as supported. The missing Samsung workload is modelled as an explicit external gate samsung.net.sdk.tizen.manifest-11.0.100 has not been published, so net11.0-tizen11.0 cannot be restored or built by anyone yet. Rather than adding a neutral net11.0 fallback - which would make CI green while producing assemblies that cannot run on Tizen - Tizen projects fail with MAUITIZEN0001 explaining the situation. The gate is hooked before the SDK's own _CheckForUnsupportedTargetFramework. Hooking it on Build alone was not enough: the SDK rejects the TFM during inference, so the gate never fired and users got NETSDK1013 "may be misspelled" instead. Verified firing on both build and restore, and covered by a test. Package skeletons Core, Controls, Essentials, BlazorWebView, Maps, Graphics, Compatibility, Build.Tasks, and Templates. Each declares identity, dependencies and packing metadata but compiles no sources yet. That is deliberate. The imported files were compiled *into* the MAUI assemblies upstream; many are partial halves of types in Microsoft.Maui.Core or touch internals, and C# cannot complete a partial type across an assembly boundary. Globbing them would produce hundreds of errors that say nothing about the migration's state; deleting them would discard the history just imported. Sources are listed as <None> so they stay visible, and each project opts in once reworked. Assembly names and package IDs are Maui.Tizen.* (two assemblies cannot share a simple name, and this repository must not squat Microsoft-owned IDs), while namespaces stay Microsoft.Maui.* (compile-time only, so imported code and consumer using directives are unaffected). Validation that actually runs eng/build-workload-free.sh is the required CI lane. It checks baseline/build configuration consistency, import tooling integrity, and builds and runs 21 repository invariant tests on net11.0. So when the workload ships, the workload is the only thing that has to start working. This lane already earned its keep: it caught that the imported Tizen build tasks depend on shared Resizetizer types (ILogger, ResizeImageInfo, ResizedImageInfo) whose filenames contain no "tizen" and were therefore correctly excluded by the import filter. Recorded as an open disposition decision rather than papered over. CI adds a provenance job that fails if the imported history is ever flattened, and a workload gate job that reports status on every build instead of silently skipping. Contracts for the inventory workstream eng/manifests/source-disposition.schema.json defines the per-file disposition contract; eng/api-baselines/ defines where API baselines land. Both are schema and structure only - generators and generated data are owned separately. The schema enforces two real correctness rules: shared files containing #if TIZEN branches may never be a straight "move" (that would fork code we do not own), and "exclude" requires written justification so it is never indistinguishable from "overlooked". Documentation docs/architecture.md covers the three-way split between package ID, assembly name and namespace, the four type-collision rules, and the version floor. docs/migration.md covers phases, baselines, the disposition legend, open decisions, and the external gate. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Both were real problems, not flaky infrastructure. 1. Provenance check had a pipefail/SIGPIPE race `git log ... | grep -q .` under `set -o pipefail` is nondeterministic: grep -q exits on the first match and closes the pipe, so git log can die with SIGPIPE and poison the pipeline's exit status depending on how much it had already written. That is exactly how it failed - in one run #2360 was reported present and #9619 reported "missing", from the same history where both are reachable. Replaced with `| wc -l`, which consumes all input so there is no early close. Verified deterministic over repeated local runs. 2. NU1903: vulnerable MSBuild package Microsoft.Build.Utilities.Core 17.11.4 carries a known high-severity advisory (GHSA-w3q9-fxm7-j8fq). CI builds with TreatWarningsAsErrors, so NuGet audit correctly turned this into a hard error. Bumped Microsoft.Build.* to 17.14.28. Also made the audit policy explicit rather than incidental: NuGetAudit with mode=all and level=low. This code ships to Tizen devices, where patching is slow, so carrying a known-vulnerable transitive package is not acceptable. Root cause of *why CI caught these and local validation did not* eng/build-workload-free.sh ran without ContinuousIntegrationBuild, and TreatWarningsAsErrors is conditioned on it - so the local lane applied weaker rules than CI and could never have caught NU1903. A pre-CI validation lane that does not match CI is not doing its job, so the script now exports ContinuousIntegrationBuild=true by default, with MAUI_TIZEN_LOCAL_SEMANTICS=1 to opt out. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
actions/checkout@v4 and actions/setup-dotnet@v4 target Node 20, which the runners now force onto Node 24 while emitting a deprecation annotation on every job. Moving to v5 removes the warning and avoids a forced break when Node 20 support is finally removed. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
actions/setup-dotnet@v5 resolves the global.json version verbatim, so "11.0.100-preview.7" - a band, not an SDK version - failed with: Could not find `.NET Core SDK` with version = 11.0.100-preview.7 v4 tolerated the band, so this only surfaced when the actions were upgraded. Pinned to 11.0.100-preview.7.26381.103. rollForward:latestFeature still allows newer 11.0.1xx SDKs, so nothing is lost by being concrete, and both CI and local installs become reproducible. The band remains recorded in eng/baselines.json. Both the validation script and the invariant tests now reject a bare band explicitly rather than only checking the prefix, which would have accepted the broken value. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Corrects a measurement error in my own earlier analysis and documents the resulting gap. I previously reported "46 commits after PR #36657, 3 touching Tizen" as the rationale for pinning ee4d06cde6 rather than the PR #36657 merge commit. That figure was wrong: it was measured against origin/net11.0 *after* the branch had already advanced to bedd1b18b7, not against the pin itself. Measured correctly: 0b3bb76d2d..ee4d06cde6 4 commits, ZERO touching Tizen paths So the three Tizen commits I cited are not included by the pin - they land after it. The pin remains correct and stays as approved, but its justification was not. The excluded commits are now recorded in eng/baselines.json and PROVENANCE.md: 62418a4ec4 #37420 Expose gesture recognizer dispatch APIs 78502a5325 #37671 Harden gesture recognizer dispatch API contracts 4695c95801 #37755 Add badge support to TabbedPage All three touch only src/Controls/src/Core/PublicAPI/net-tizen/PublicAPI.Unshipped.txt - API surface declarations, not implementation. The concrete consequence is that the Controls net-tizen Unshipped baseline is three API additions behind current net11.0, which affects API baseline diffing rather than source migration. The inventory tooling needs to know this before generating baselines from the pin. A pin is only genuinely reproducible if what it excludes is written down too. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
CI: remove the pull_request branch filter
`pull_request: branches: [ main ]` meant stacked PRs targeting this foundation
branch received *zero* checks. That is worse than a failing check: nothing
signals that anything is wrong, so an unvalidated stack looks the same as a
green one. Push stays limited to main.
Counts: corrected using blob-only measurement
Cross-checked with the inventory session, which surfaced two real problems with
the figures I published.
1. Two distinct locations are called "Compatibility", and only one was removed:
src/Controls/src/Core/Compatibility/** legacy renderer shim (FrameRenderer,
ViewRenderer, ListView/TableView adapters)
STILL on net11.0, 11 Tizen files at both
refs, already imported normally
src/Compatibility/** old top-level Xamarin.Forms stack
REMOVED from net11.0, 70 Tizen files
(Core 48, Material 17, Maps 5) at 9.0.120
My docs said "Compatibility was deleted" without that distinction, which invites
the wrong conclusion about the renderer shim. Now stated explicitly.
2. "338 Tizen-named files" was wrong - measured with a different regex against a
different ref. Correct figure at the pin is 314 blobs, which is consistent with
the import's 316 files at tip (314 + upstream LICENSE.txt and
THIRD-PARTY-NOTICES.TXT).
Also recorded the full set of files present at 9.0.120 but absent at the net11.0
pin - 87 blobs: src/Compatibility 70, Controls TizenSpecific docs XML 9,
Templates platform assets 7, one Essentials multi-target file.
Counting note now documented for generator authors: the GitHub tree API returns
`tree` entries alongside `blob`s, so filtering on "path contains tizen" without
also filtering `type == blob` counts `Tizen/` directories as files. That inflates
src/Compatibility from 70 to 76 and the overall set from 87 to 102. The manifest
is per-file, so directory entries would become bogus rows.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…nifest validation
All four review findings were real. Two of them meant the build system was
quietly lying about its own state.
1. TargetFramework was assigned too late (Directory.Build.targets -> props)
Directory.Build.targets is imported at the end of Microsoft.Common.targets, long
after the SDK parses $(TargetFramework) into TargetFrameworkIdentifier/Version.
Assigning the TFM there meant inference ran against an empty value:
before TargetFramework=net11.0-tizen11.0 Identifier=_ Version=v0.0
after TargetFramework=net11.0-tizen11.0 Identifier=.NETCoreApp Version=v11.0
TargetPlatformIdentifier=tizen
The value looked right while everything keyed off the identifier - NuGet's
restore graph, framework-conditional items, SDK feature switches - evaluated
against a framework that does not exist. Moved to eng/targets/TizenPackage.props,
which is imported from the project body and therefore evaluated before Sdk.targets.
Knock-on effect worth noting: fixing inference changed which SDK error fires
first, from NETSDK1013 ("may be misspelled") to NETSDK1139 ("target platform
identifier tizen was not recognized"), and the workload gate silently stopped
firing again. It now hooks both SDK pre-checks, verified on build, restore and
pack with zero raw SDK errors leaking.
2. Workload probe could never match
The probe constructed sdk-manifests/$(NETCoreSdkVersion)/samsung.net.sdk.tizen/.
The real layout is sdk-manifests/<feature-band>/<id>/<version>/, and the band is
not the SDK version - an 11.0.100-preview.7.26381.103 SDK installs manifests
under band 11.0.100-preview.6. So it reported "workload missing" unconditionally,
including on a machine where the workload was installed.
Detection moved into a _DetectTizenWorkload target using item globs, matching
both the versioned and legacy layouts under any band. It has to be a target: at
evaluation time item references expand neither in property conditions (MSB4099)
nor in property values (`@(x)` stays the literal string "@(x)", which is truthy
and reported "installed" everywhere), and Directory.GetDirectories with
SearchOption is not on MSBuild's property-function allowlist (MSB4186).
3. Workload reporting substring-matched unrelated workloads
`dotnet workload list | grep -qi tizen` matches `maui-tizen`, so the script would
have declared the external gate lifted while Samsung's workload was still absent.
The script now asks MSBuild via a ReportTizenWorkload target, so there is exactly
one detection implementation to get right.
4. Manifest path uniqueness cannot be expressed in JSON Schema
`uniqueItems` compares whole objects, so two entries for the same path with
different dispositions validate cleanly while leaving the migration with two
contradictory answers for one file. Added SourceDispositionValidator enforcing
duplicate paths, conflicting duplicates, and duplicate targetPaths (two sources
mapping to one destination silently overwrites). It runs against the real
manifest when present, and against fixtures always - a validator never shown to
reject anything is not a validator.
Regressions added
eng/tests/test-workload-detection.sh 8 checks driving the real MSBuild target
through fixtures, including the maui-tizen
substring trap and end-to-end assertions
that build/restore surface MAUITIZEN0001
and never leak NETSDK1013/NETSDK1139
tests/UnitTests 22 -> 28 tests, pinning the TFM assignment
location, both gate hooks, the absence of a
constructed manifest path, and manifest
semantics
Also corrected "136 shared files with #if TIZEN" to 135: Matrix3x2Extensions.cs
uses the legacy Xamarin.Forms-era TIZEN40 symbol, which my substring match
wrongly counted as ours.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…policy Ten further review findings. All were real; several were things that looked correct while doing nothing. Blazor package graph (verified against the feed, not assumed) Microsoft.AspNetCore.Components.WebView was pinned to MAUI's version stamp 11.0.0-preview.7.26418.3. That version does not exist for that package - it is an ASP.NET Core package on its own version line - so NuGet silently substituted 11.0.0-rc.1.26378.118 (NU1603) and then failed with NU1109 downgrades across the graph. That substitution is where the "actual dependency is rc.1" report came from; it was NuGet's fallback, not a declared dependency. Microsoft.AspNetCore.Components.WebView.Maui 11.0.0-preview.7.26418.3 declares Microsoft.AspNetCore.Authorization, Microsoft.AspNetCore.Components.WebView and Microsoft.JSInterop at exactly 11.0.0-preview.7.26381.103 - which also matches the SDK build pinned in global.json, so the whole graph stays on one ASP.NET Core build. Pinned there. RC1 would have silently upgraded past what MAUI asked for. Package source mapping now lists the prerelease patterns under BOTH sources. NuGet restores only from sources declaring the longest matching pattern, so Microsoft.AspNetCore.* under dotnet11 alone would have made every ASP.NET Core package resolvable only from that feed (NU1100 for anything it lacks). Added eng/tests/PackageGraphProbe: a net11.0 project whose only purpose is to make restore prove these pins resolve. Necessary because the real consumers are Tizen projects, and they cannot restore at all - the workload gate fires before Restore - so a broken pin would otherwise stay invisible until Samsung ships. Verified it reproduces the original NU1603/NU1109 failure. CI workload probe could never succeed (#5) `dotnet workload install tizen --skip-manifest-update` cannot work on a clean runner: the Samsung manifest is third-party and side-loaded, so the workload ID is not discoverable through public workload search, and --skip-manifest-update guarantees failure because the manifest is exactly what is missing. A probe that can never succeed would keep reporting "blocked" for weeks after the gate lifts. Replaced with a feed probe for an 11.0.100-band manifest package, checking both ID spellings. Installation, when it happens, goes through Samsung's supported path. Dead configuration removed (#6, #10) - <Compile Update="**/*.Tizen.cs" /> had no metadata, so it changed nothing, and EnableDefaultCompileItems=false meant there were no items to update anyway. It read as meaningful configuration while being unreachable. - ValidateBaselineConsistency did substring matching on JSON inside MSBuild. Parsed validation already exists in the workload-free script and the invariant tests, which is where it belongs. Orphan imported projects (#7) GraphicsTester.Skia.Tizen.csproj was imported because its filename contains "Tizen", but it cannot load here: its TFM is $(_MauiDotNetTfm)-tizen (a dotnet/maui property that does not exist here, so the TFM evaluates to the malformed "-tizen") and both ProjectReferences point at projects never imported. Parked as .csproj.orphan - file and history intact, invisible to project discovery - with samples/README.md documenting every orphan asset directory and an invariant test asserting every .csproj is in the solution. Analyzers and warnings (#8, #14) - Added Microsoft.CodeAnalysis.PublicApiAnalyzers (PrivateAssets=all) so the PublicAPI baselines are enforced rather than inert text. - Removed the Microsoft.SourceLink.GitHub pin; the SDK has bundled it since .NET 8. - Suppressed CS1591 in TizenPackage.props: the inherited sources are not uniformly documented, so the first project to start compiling would otherwise fail on hundreds of missing-comment errors under warnings-as-errors. Documentation is its own workstream, not a blocker for the first handler. Licensing (#9) git-filter-repo is vendored and load-bearing, so unlike the referenced-only Samsung packages it IS redistributed. Added its upstream, version, MIT licence text and a verification command to THIRD-PARTY-NOTICES.md. CI hygiene (#11, #12) - `dotnet test --no-build` is skipped when a preceding build failed; running it against missing output buries the actual first failure in cascading noise. - Added a scheduled dependency-audit workflow. The strict policy stays (audit at `low`, warnings as errors - this ships to devices where patching is slow), but a newly published advisory now files an issue weekly instead of ambushing whoever opens the next unrelated PR. Suppression process documented, with a required justification and re-review date. Naming and provenance (#13) Replaced 'samsung.net.sdk.tizen.manifest-11.0.100' with the actual band contract Samsung.NET.Sdk.Tizen.Manifest-11.0.100-preview.7, recording both ID spellings (NuGet IDs are case-insensitive) and the probe results for each. Documented that tizen11.0/API15 comes from Samsung workload PR #310 - verified, not assumed. Also recorded that enabling Build.Tasks raises real SkiaSharp native-asset packaging questions, flagged as an open decision rather than papered over. Tests: 28 -> 33 invariants, plus the package graph probe wired into the required lane. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Found while trial-merging PR #3 (inventory tooling) onto this branch: its three new projects - ApiDump, SourceInventory and Migration.Tooling.Tests - target net10.0, which the repository does not support (eng/baselines.json > policy.minimumDotNet = 11.0, supportsDotNet10 = false). The failure mode is subtle enough to be worth writing down. A net10.0 project BUILDS fine with the pinned .NET 11 SDK, so nothing complains at compile time. Its testhost then fails at run time: You must install or update .NET to run this application. Framework: 'Microsoft.NETCore.App', version '10.0.0' The following frameworks were found: 11.0.0-preview.7.26381.103 ...unless the machine also happens to carry a .NET 10 runtime - which GitHub's hosted images do. So it passes in CI and fails for anyone whose environment matches global.json exactly. Green for the wrong reason. The existing NoProjectFallsBackToANeutralTargetFramework test only scanned src/, so it could not have caught this. The new test walks every .csproj in the repository, parses each TFM, and compares against the floor declared in baselines.json - so the policy is enforced from one source of truth rather than restated per directory. Tests: 33 -> 34. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The coordinator asked that knownGapAfterThisPin and the PROVENANCE "What the pin excludes" section survive all review-fix rebases. Verifying they are present today answers that once; a test answers it permanently. Both survived the last four commits by luck rather than design. This is exactly the kind of prose that disappears quietly in a rebase - nothing references it, so nothing breaks when it goes, and the loss is invisible until someone regenerates API baselines and cannot explain a three-entry delta. The test asserts the three excluded commits (#37420, #37671, #37755) and that PROVENANCE.md still characterises them as PublicAPI.Unshipped-only. That second half matters as much as the list: without it the gap reads as missing implementation rather than API surface declarations, which would send someone looking for code that was never absent. Verified as a real guard, not decoration - deleting knownGapAfterThisPin makes it fail, restoring it makes it pass. Tests: 34 -> 35. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Verified independently against the dnceng dotnet11 feed before changing pins: all 7 required packages present at 11.0.0-preview.7.26426.4 nuspec repository commit = bedd1b18b7682193e05b47267509cec8c49c6853 (checked on Maui.Core, Maui.Controls.Core and AspNetCore.Components.WebView.Maui) Unchanged, as directed: sourceBaseline ee4d06cde6 history import, no reimport requiredAncestor 0b3bb76d2d minimum API floor ASP.NET Core floor 11.0.0-preview.7.26381.103 The ASP.NET Core floor is worth stating explicitly rather than merely leaving alone: I re-read the NEW WebView.Maui nuspec and it still declares Authorization / Components.WebView / JSInterop at 26381.103. So the floor does not track the MAUI stamp across bumps. That is now recorded in baselines.json as aspNetCoreDependencyFloor, with a test, so the next bump has something to check rather than an assumption to make. Consequence worth documenting: the gap changed meaning bedd1b18b7 is the commit that CONTAINS the three Tizen-touching changes recorded in knownGapAfterThisPin (#37420, #37671, #37755). So after this bump the gap is one-directional: the Microsoft.Maui.* assemblies we compile against DO carry those API additions the imported PublicAPI.Unshipped.txt baseline does NOT Anyone diffing our API baselines against these packages should expect exactly that delta and not read it as drift. Recorded in both baselines.json and PROVENANCE.md. Two invariants added, since these values now live in two files each: MauiPackageVersionsMatchTheDeclaredDevelopmentBaseline AspNetCoreFloorMatchesTheDeclaredDependencyFloor Validated: full workload-free lane green, 37 invariant tests (was 35), and the package graph probe confirmed resolving Microsoft.Maui.Core/11.0.0-preview.7.26426.4 rather than merely restoring without error. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Two merge blockers from final review, both real and both measured before fixing. 1. PublicAPI analyzer wiring attached the wrong baselines, inconsistently TizenPackage.props globbed `PublicAPI/**/PublicAPI.*.txt` into AdditionalFiles for every package project. That was wrong in two independent ways: Wrong baseline. The imported files are upstream's MONOLITHIC per-assembly baselines. src/Maui.Tizen.Core's has 3,268 entries; only 447 are the Microsoft.Maui.Platform types this split assembly will actually contain. The moment a project compiles, the other ~2,800 become RS0017 - thousands of errors describing a mismatch between two different assemblies, not an API regression. Silently missing. Rooted at the project directory, the glob matched 2 items each for Core/Essentials/BlazorWebView and ZERO for Controls/Maps/Graphics, whose baselines sit a level deeper (Core/PublicAPI, Xaml/PublicAPI, Graphics.Skia/...) because those packages merge two upstream assemblies. Measured 2/2/2 vs 0/0/0. Enforcement that is silently absent is worse than none: it looks present. Replaced with explicit project-owned opt-in. The analyzer stays referenced and inert until a project supplies AdditionalFiles describing ITS OWN assembly. Imported src/**/PublicAPI/** are now documented as provenance fixtures feeding eng/api-baselines/ diffing, not as this repository's API contract. Nothing is globally suppressed - RS0016/RS0017 remain errors. eng/tests/PublicApiOptIn is the worked example, and it is proof rather than illustration: I verified the analyzer actually fires by breaking it both ways. Adding an undeclared public member produces RS0016; adding a baseline entry absent from the assembly produces RS0017 - the exact failure the monolithic baseline would have caused at scale. 2. Workload detection accepted wrong-major workloads The glob `sdk-manifests/*/samsung.net.sdk.tizen/` matched ANY band, so a Samsung workload installed for .NET 9 or .NET 10 lifted the net11 gate; the build would then fail much later with an unrelated-looking missing-reference-pack error. Restricted to $(TizenWorkloadBandPattern), derived as $(DotNetVersion).* = 11.0.*. Deliberately the feature LINE rather than the exact band from baselines.json: this SDK (11.0.100-preview.7.26381.103) ships manifests under BOTH 11.0.100-preview.6 and 11.0.100-preview.7, so bands demonstrably drift within a line and pinning the preview segment would be a false negative on a correctly configured machine - the same class of bug this detection was already fixed for once. Added an old-band-only negative fixture (9.0.100 + 10.0.100 Samsung workloads present, correctly reporting false) alongside the existing current-band and legacy layout positives. 3. README packing - the reported defect does not reproduce The review expected NU5039 because the README Pack ItemGroup is conditioned on IsPackable, which is opted into from the project body. MSBuild does not evaluate that way: properties across all imports AND the project body are evaluated in an earlier pass than any item, so the condition already observes the final value. I packed a project shaped exactly like a shipping package, importing TizenPackage.props and setting IsPackable in its body: README.md is present in the nupkg and there is no NU5039. Rather than move working configuration on a theory, eng/tests/PackReadmeProbe pins the actual behaviour - the lane packs it and asserts README.md is in the nupkg. While writing that assertion I reintroduced the pipefail/SIGPIPE bug I had previously diagnosed in the CI provenance check: `unzip -l | grep -q` closes the pipe early and poisons the pipeline, reporting a missing README for a package that demonstrably contained one. Fixed with grep -c and commented so it is not written a third time. Also derived the second workload probe ID in CI from the configured band instead of hardcoding 11.0.100. Tests: 37 -> 41 invariants, workload regressions 8 -> 9, plus the pack assertion. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Relocates the README <None Pack="true"> ItemGroup from Directory.Build.props to Directory.Build.targets, so it is evaluated unambiguously after the project body has set $(IsPackable). To be accurate about what this does and does not fix: the .props placement was NOT broken. MSBuild evaluates all properties - across every import AND the project body - in an earlier pass than any item, so the ItemGroup condition already observed a project-body <IsPackable>true</IsPackable>. I verified this before and after by packing a project shaped exactly like PR #10's Build.Tasks and Templates (imports TizenPackage.props, opts into IsPackable in its own body): README.md is present in the nupkg and no NU5039 occurs in either arrangement. Moving it anyway, for a reason that is not "the bug was real": Two reviewers independently read the .props placement as an NU5039 defect. Both reasoned top-to-bottom, which is how almost everyone reads a build file. When correctness depends on recalling MSBuild's multi-pass evaluation order, it cannot be reviewed at a glance - and this is a one-line relocation with no behavioural downside. Subtle-but-right is worse than obviously-right when obviously-right is free. Added ReadmePackItemIsDeclaredAfterProjectEvaluation so it does not drift back, and left comments at both the old and new locations explaining the evaluation semantics, so the next reader does not have to re-derive them or re-file the finding. The behavioural guard remains eng/tests/PackReadmeProbe, which packs and asserts README.md is inside the nupkg - added at 3713c45, unchanged here. That is what actually protects this; the relocation protects the reviewer. Tests: 41 -> 42. 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 join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Foundational PR for extracting the .NET MAUI Tizen backend from
dotnet/maui. Covers migration Phases 0–1 only: frozen baselines, history-preserving import, repository scaffolding, contracts for the inventory workstream, and documentation. No handler implementation, no published packages, no upstream removals.The repository was previously a single README commit.
Commits
Deliberately separable, in dependency order:
60db647LICENSE+THIRD-PARTY-NOTICES.md— before any MAUI code lands424386b1b85b2dPROVENANCE.md— 316 pure renames4544798The import and normalization are separate on purpose: a reviewer can confirm nothing was smuggled in during the filter by diffing
424386balone.History import
Filtered
dotnet/mauito Tizen-only paths with vendoredgit-filter-repo:git log --followworks across the renameLICENSE.txt/THIRD-PARTY-NOTICES.TXTretained underdocs/upstream/so licensing lineage is verifiable from the git log itselfeng/import/filter-maui-tizen.shThe path spec matches
(?i)tizenrather than today's directories, because the backend has lived underXamarin.Forms.Platform.Tizen/**,Stubs/**,Samples/Samples.Tizen/**,PagesGallery/**andsrc/Platform.Renderers/**over the years; a spec pinned to current paths would truncate history at each rename.Baselines
Pinned to commit SHAs, never branch names —
origin/net11.0advanced fromee4d06cde6tobedd1b18b7during the hours this import was prepared, which is exactly the reproducibility failure this guards against.sourceBaselineee4d06cde6—net11.0@ 2026-08-18requiredAncestor0b3bb76d2d— PR #36657, Essentials/MainThread extensibilitybehaviorBaselinec1f4f7d879— tag9.0.120, pushed here asupstream/9.0.120developmentPackageBaseline11.0.0-preview.7.26418.3(dncengdotnet11feed)Two traps worth flagging for reviewers:
0b3bb76d2dis not onmain— it lives onnet11.0. Baselining againstmainomits the extensibility work the architecture depends on. The import script hard-fails if it isn't an ancestor.src/Compatibilityis not onnet11.0— deleted upstream. Its 70 Tizen files exist only at9.0.120, which is why that tag is imported and pushed rather than merely referenced.Target framework
net11.0-tizen11.0— TizenFX API15,Samsung.Tizen.Ref.API1515.0.0.19396,tizen-manifestapi-version 11, SDK band 11.0.100-preview.7.Note this is not dotnet/maui's
tizen7.0, a version the current Samsung SDK no longer lists as supported.samsung.net.sdk.tizen.manifest-11.0.100has not been published to nuget.org (only the9.0.100and10.0.100bands exist; newestSamsung.Tizen.Sdkis10.0.128). This is a Samsung dependency, not something this repo can engineer around.Handled as an explicit gate rather than papered over:
net11.0fallback. It would make CI green while producing assemblies that cannot run on Tizen — a green build hiding a broken product.MAUITIZEN0001, which explains the situation.One thing worth reviewing closely: hooking the gate on
Buildalone did not work. The SDK rejects the TFM during inference, so the gate never fired and users gotNETSDK1013 … may be misspelled— the exact confusing error it was meant to prevent. It is now hooked before the SDK's_CheckForUnsupportedTargetFramework, verified firing on bothbuildandrestore, and covered by a regression test.Scaffolding
Maui.Tizen.slnx,global.json,Directory.Build.props/.targets,Directory.Packages.props(CPM),nuget.configwith package source mapping, and package skeletons for Core, Controls, Essentials, BlazorWebView, Maps, Graphics, Compatibility, Build.Tasks and Templates.The skeletons deliberately compile no sources. Upstream these files were compiled into the MAUI assemblies; many are
partialhalves of types inMicrosoft.Maui.Coreor touchinternalmembers, and C# cannot complete a partial type across an assembly boundary. Globbing them would yield hundreds of errors saying nothing about the migration's state; deleting them would discard the history just imported. Sources remain visible as<None>, and each project opts in as it is reworked.Naming policy — three identities, decided independently
Maui.Tizen.*Maui.Tizen.*Microsoft.Maui.*preservedusingdirectives unchangedNew implementation-only types use
Microsoft.Maui.Platforms.Tizen.*— verified unused throughoutdotnet/maui, so it cannot collide.Validation
All run locally against .NET SDK 11.0.100-preview.7:
The workload-free lane already earned its keep: it caught that the imported Tizen build tasks depend on shared Resizetizer types (
ILogger,ResizeImageInfo,ResizedImageInfo) whose filenames contain no "tizen" and were therefore correctly excluded by the filter. That is recorded as an open disposition decision, not silently patched.Not validated: anything requiring the Samsung .NET 11 workload. That is the external gate above, reported rather than skipped.
Left for the inventory workstream
Schema and directory contracts land here; generators and generated data are owned separately:
eng/manifests/source-disposition.schema.json— schema only, no dataeng/manifests/— manifest dataeng/api-baselines/net9.0-tizen7.0/,eng/api-baselines/net11.0-publicapi/— API baseline dataeng/tools/ApiDump/— not created hereThe schema encodes two real correctness rules: files with
#if TIZENbranches may never be a straightmove(that forks code we don't own), andexcluderequires written justification so it is never indistinguishable from "overlooked".Review guide
PROVENANCE.md, then diff424386balone to confirm the import is mechanicaldocs/architecture.md— type-collision rules and the namespace/package/assembly splitdocs/migration.md— phases, open decisions, and the gate