Repository navigation
chore!: Uno Platform 7.0 retarget (SDK, net10.0, .NET 10 fallout) - #3181
Merged
Merged
Conversation
Contributor
|
|
MartinZikmund
force-pushed
the
dev/mazi/uno70
branch
2 times, most recently
from
September 17, 2026 12:22
cc71b5c to
8a92e34
Compare
Contributor
|
|
1 of 6 tasks
Contributor
|
|
MartinZikmund
marked this pull request as ready for review
September 23, 2026 11:59
ajpinedam
approved these changes
Sep 23, 2026
Contributor
|
|
BREAKING CHANGE: packages now target net10.0 and require Uno Platform 7.0. Mac Catalyst
is no longer a supported target.
Move every project from `Uno.Sdk` to `Uno.Sdk.Private` 7.0.0-dev.701 and retarget
net9.0 -> net10.0. There is no public `Uno.Sdk` 7.x yet, so the private SDK is the
only one carrying the 7.0 version table.
- Mac Catalyst is dropped: Uno Platform 7.0 ships no assets for it, and the 7.0 SDK
no longer lists it as a platform (`Uno.IsPlatform.props`).
- `MSBuild.Sdk.Extras` leaves `global.json`. Nothing in the repo has referenced it for
some time, and the .NET 10 SDK fails to resolve it (MSB4184).
- `System.Collections.Immutable`, `System.Text.Json` and `System.Threading.Tasks.Extensions`
are removed: on net10.0 they are framework-provided, and NuGet now errors (NU1510) on
referencing them explicitly.
- `Uno.Core.Extensions.Logging{,.Singleton}` move to 5.0.0-dev.28, the 7.0 line that
`Uno.UI.Adapter.Microsoft.Extensions.Logging` 7.0.0-dev.701 requires (NU1109).
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01XKVS6HsqQKi8xT8dQ3REDT
BREAKING CHANGE: the WinUI libraries no longer produce net10.0-ios, net10.0-android or net10.0-browserwasm assets. Consumers resolve the net10.0 asset on those platforms, which is what Uno Platform 7.0 itself ships. Uno Platform 7.0 renders with Skia on every platform, so `Uno.WinUI` ships library assets only for net10.0 and net10.0-windows10.0.19041. Building the shipped libraries for net10.0-ios/-android/-browserwasm now binds nothing extra - it just multiplies build legs and, when one of them fails, the failure cascades into every downstream project reference as several hundred spurious CS0246/CS0234. App heads still target the platform they run on, so the two lists have to diverge: - `tfms-ui-winui.props` keeps net10.0 + net10.0-windows10.0.19041 and stays with the 16 shipped libraries. - `tfms-ui-winui-runtimetests.props` - dead code, imported by nothing on `main` - is reused as `tfms-ui-winui-apps.props` and carries the platform matrix for the app heads (Playground, TestHarness, RuntimeTests) and the projects deployed into them (RuntimeTests.Core and the five `*.UI.Tests`). Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01XKVS6HsqQKi8xT8dQ3REDT
.NET 10 ships `System.Linq.AsyncEnumerable` in the BCL, which collides head-on with the `System.Linq.Async` 4.0.0 package: 104 CS0121 across Feed.Extensions, ListFeed.Extensions and the T4-generated CombineFeed, plus 11 CS0149 cascading from the ambiguous `Select` calls. The BCL covers every operator this repo uses except four Ix.NET-only ones, so drop the package and re-home those into the existing internal `AsyncEnumerableExtensions`: `ForEachAsync` (two overloads), `ForEachAwaitAsync` and a `Func`-shaped `ForEachAwaitWithCancellationAsync`. The repo's own `FirstOrDefaultAsync(source, defaultValue, ct)` goes away - .NET 10 now ships an identical one. `MoveNextAsync(ct)` was also an Ix.NET extension, so it comes back as `AsyncEnumeratorExtensions` with the same semantics (throw if cancelled, then move). Without it, cancellation between two moves is no longer observed. `CombineFeed.tt` needs no change: the generated `Select` calls pass explicit type arguments and bind to exactly one BCL overload. Bumping to System.Linq.Async 7.0.1 would also resolve the ambiguity, but every surviving `ForEach*` there is `[Obsolete]`, which this repo's `TreatWarningsAsErrors` turns into 14 build errors. Not marked breaking: both colliding classes are `internal`. It does drop a public NuGet dependency from Uno.Extensions.Reactive, which is additive for consumers - the shipped 7.3.6 forces the same collision onto any net10.0 app that references it. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01XKVS6HsqQKi8xT8dQ3REDT
BREAKING CHANGE: requires Uno Platform 7.0, where `Uno.UI.Toolkit` no longer exists. Uno Platform 7.0 renames the `Uno.UI.Toolkit` assembly to `Uno.UI.Extras`, but the types move to their natural namespaces rather than travelling as a block: `StorageFileHelper` is now `Uno.Storage.StorageFileHelper`. Verified against `lib/net10.0/Uno.UI.Extras.dll` in Uno.WinUI 7.0.0-dev.701, which contains `Uno.Storage` and no `Uno.UI.Toolkit`. `using:Uno.UI.Extras` would compile but resolve nothing at runtime - the namespace exists, the type is not in it. The WinAppSDK PRI workaround follows the same rename: the package now ships `Uno.UI.Extras.pri` and an `Uno.UI.Extras/` asset folder, so the old paths silently copied nothing. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01XKVS6HsqQKi8xT8dQ3REDT
… line
- `Microsoft.Maui.Controls{,.Compatibility}` 9.0.111 -> 10.0.90, the version the
Uno.Sdk.Private 7.0.0-dev.701 package table itself provisions. 9.0.111 resolves on
net10.0 but emits IL2111 on the Apple legs, which `TreatWarningsAsErrors` fails.
- `Microsoft.Extensions.*` 9.0.14 -> 10.0.12. MAUI 10 pulls the 10.0.0 assemblies
transitively, so leaving the central pins on 9.0.14 is an NU1109 downgrade.
- `Uno.WinUI.Markup` / `Uno.Extensions.Markup.*` 5.3.12 -> 7.0.0-dev.9.
The Markup bump is a step, not a fix. 7.0.0-dev.9 is still built against Uno 6.x, so
Uno 7's own analyzer still reports UNOB0020 ("references Uno Platform types that no
longer exist ... will fail at runtime") against its assets. It is on the 7.0 line
where the real fix lands, making the eventual unblock a version number only.
See unoplatform/uno.csharpmarkup#906.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01XKVS6HsqQKi8xT8dQ3REDT
…7 floors BREAKING CHANGE: Mac Catalyst is no longer a supported target. Uno Platform 7.0 removes Mac Catalyst: the 7.0 SDK declares Android, iOS, tvOS, Desktop, Wasm and Windows platform folders and no longer recognises `Platforms/MacCatalyst`. The four `Main.maccatalyst.cs` files would therefore fall into the default compile glob of *every* target framework, so the folders go. The sample and harness pins move to what the 7.0 SDK provisions - SkiaSharp 4.151.1, Svg.Skia 3.0.6, WindowsAppSDK 2.4.0, Microsoft.Extensions.* 10.0.12 - and two workarounds are retired because the conditions that motivated them are gone: - The `WinAppSdkVersion` override in Playground and MauiEmbedding existed to reconcile `Uno.Sdk` and `Uno.Sdk.Private` pulling different WindowsAppSDK versions. There is only one SDK now, and the override pinned below Uno 7's 2.4.0 floor (NU1605). - The `Microsoft.Extensions.*` re-pin in the RuntimeTests head existed to avoid NU1109 "without raising the dependency versions of the published packages". Those versions have now been raised, so the re-pin only reintroduced the downgrade it was added to prevent. `SkiaSharp.Skottie` loses its 2.88.8 `VersionOverride` and is pinned centrally at the SDK's 4.151.1 instead. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01XKVS6HsqQKi8xT8dQ3REDT
`FrameworkElement.DataContext` is nullable in Uno 7, so casting it straight to `HotReloadVm` is CS8600 under this repo's `Nullable=enable` + `TreatWarningsAsErrors`. The six sites become `.Should().BeOfType<HotReloadVm>().Subject`, which both satisfies the nullable flow and turns a wrong or missing view model into a readable assertion failure instead of an InvalidCastException. That matches how the rest of these files already assert. Separately, eight of the fifteen XAML pages were never listed as `<Page>` items. The project sets `EnableDefaultPageItems=false`, which suppresses the WindowsAppSDK default items, so on net10.0-windows10.0.19041 their generated `InitializeComponent` never existed (CS1061/CS0103). The Uno SDK's own glob covers the Skia targets, which is why only the Windows leg broke - and why CI never caught it, since the runtime-test stages build Skia and mobile heads only. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01XKVS6HsqQKi8xT8dQ3REDT
- Every hardcoded `net9.0-*` path and `-f net9.0-*` argument becomes `net10.0-*`, across the runtime-test, wasm and desktop stages plus the wasm UI-test script and the static-app workflow. - `DotNetVersion` 9.0.200 -> 10.0.102 in all four dotnet-install templates, and the VSTest SDK pin in stage-build-packages.yml 8.0.301 -> 10.0.102. That pin fed the runner used to execute the unit tests, which are net10.0 assemblies now. - `uno.check` 1.30.1 -> 1.34.1, matching the version the Uno 7 sibling repos provision. - JDK 11 -> 17. The .NET 10 Android workload requires 17; this is the one change here I could not verify locally, since it only takes effect on the CI Android stage. - Drops `/p:Build_MacCatalyst=false` from the wasm UI-test script - the switch no longer exists. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01XKVS6HsqQKi8xT8dQ3REDT
Adds `specs/014-uno-7-retarget/spec.md` with the target version table, what is green, what is blocked upstream and why, and the local-build note that `dotnet build` cannot build a WinUI project with XAML on 7.0 (UNOB0008 - use MSBuild, as CI does). `AGENTS.md` claimed net9.0 TFMs, `Uno.Sdk` 6.0.x, a per-platform `tfms-non-ui.props`, a `tfms-ui-winui-runtimetests.props` that no longer exists, and Mac Catalyst as a supported target. The crosstargeting sample listed uap10.0 and net5.0-windows among its "available build targets". Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01XKVS6HsqQKi8xT8dQ3REDT
- Pin the .NET SDK to 10.0.101. Provisioning wasm-tools moves the mono.toolchain.current manifest to uno.check's own band (10.0.101), so on 10.0.102 the resolver asked for MonoTargets.Sdk 10.0.2 and every net10.0-ios project failed NETSDK1147 on the Windows agents (same fix as Uno.Themes). - Select Xcode 26.1.1 with the iOS 26.1 simulator runtime: .NET for iOS 26.1 refuses to build with Xcode 16.4. - Move the static web app workflow from the 9.0 SDK, which cannot target net10.0 (NETSDK1045). Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc
- The ios:/android: MobileFrameTemplate hosted Uno.Toolkit's NativeFramePresenter, which Uno.Toolkit 11 removes along with native NavigationBar rendering. - The Navigation.Toolkit library only targets net10.0 and Windows, so those arms were never compiled; FrameTemplate is now applied unconditionally. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc
7.0.0-dev.9 still carried assemblies that UNOB0020 reports as referencing types Uno 7 removed. Uno.WinUI.Markup, Uno.Extensions.Markup.WinUI and the Markup generators move together to 7.0.0-dev.33, which is built against Uno 7. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc
…s head AndroidX Emoji2 still depends on Lifecycle.Process 2.9.2.1, which caps Lifecycle.Runtime below 2.9.3, while the AndroidX Core and Activity versions Uno 7 pins need 2.10.0.2. The Android runtime-test build failed with NU1608. The pin lives in the head only, so no shipped package's dependency floor moves. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc
- Uno.Themes 9.0 and C# Markup 7.0.0-dev.33 are Uno 7 builds; only a published Toolkit 11 package is still missing. - Record the CI, Xcode and AndroidX fixes, and the local validation against the toolkit branch. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc
The first Toolkit and Themes packages built against Uno.WinUI 7.0.0-dev.701 are published, which clears the CS0012 on the missing `Uno` assembly that blocked every app head and UI-test surface. - `UnoToolkitVersion` 8.4.2 -> 11.0.0-dev.90, `UnoThemesVersion` 6.1.1 -> 9.0.0-dev.16 in both `src/` and `samples/` (which `testing/TestHarness` imports). - Drop the local `UnoToolkitVersion` override in `MauiEmbedding.csproj`; it now takes the samples pin like every other head. Both stay pinned: `Uno.Sdk.Private` 7.0.0-dev.701 still defaults its Toolkit group to 9.1.0-dev.2 and Themes to 7.1.0-dev.1, which are on the Uno 6 line. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Neither design-time companion has an Uno 7 build: - `Uno.UI.HotDesign` 1.23.0-dev.174 is still net9.0 against Uno 6.8 and pulls `Uno.Toolkit.WinUI` 9.1.3, which fails CS0012 on the missing `Uno` assembly. - `Uno.UI.App.Mcp` 2.0.0-dev.4 is net9.0 against SkiaSharp 3.119. Its `GlobalStaticResources` initializer throws `FileNotFoundException` for `SkiaSharp.Views.Windows` before `OnLaunched` runs, so the runtime-test host died at startup and the engine then reported the confusing "Window content is being set before the application is initialized". Set both switches in the root `Directory.Build.props` so every head picks them up, and drop the now-unused `UnoHotDesignVersion` pins. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…tances `NullLoggerFactory.CreateLogger(name)` returns the shared `NullLogger.Instance` whatever name it is given, so the "running host" and the "stopped host" in `When_ResetLogger_WithDifferentInstance_Then_CurrentLoggerKept` were the same object. `ResetLogger` matched and cleared the logger, and the test asserted the opposite. Use `NullLogger<T>.Instance` with two marker types, which really are distinct instances. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Toolkit 11.0.0-dev.90 and Themes 9.0.0-dev.16 are published, so every app head and UI-test surface builds. Replace the "blocked upstream" section with what was actually fixed, and add a runtime-test section: the desktop lane's remaining failures reproduce on the Uno 6 merge base, so they are not retarget fallout. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
CI runs every runtime-test lane on ubuntu-24.04 under xvfb and main is green on all of them, so the 12 desktop failures and the XAML hot-reload breakage reproduce only on a Windows host running the Win32 Skia backend. Say so, and record the XAML hot-reload sequence: the delta is applied, but `GetMetadataUpdateTypes` finds none of the updated types, so `UpdateApplication` gets an empty array and the tree is never re-applied. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
UseStudio ships with Hot Design, so with it disabled nothing registered the window and the hot-reload client could not re-apply the visual tree: every XAML-driven hot-reload test received its delta and then saw no change. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01WHHcu5U9N25wvKGNFCrpJm
Both pages were committed mid-edit by a local hot-reload run, so the tests that patch them could not find their original text and the region never populated. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01WHHcu5U9N25wvKGNFCrpJm
The hot-reload patch and its revert replace the first match, which was the doc comment quoting them, so each local run left the file modified. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01WHHcu5U9N25wvKGNFCrpJm
Uno.UITest.Selenium finds elements and reads properties through the native WebAssembly DOM renderer, which Uno 7 removed, so all 52 tests timed out. Porting the harness is tracked in #3187. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01WHHcu5U9N25wvKGNFCrpJm
BREAKING CHANGE: NavigatorExtensions.ShowPickerAsync (iOS only) is removed. It routed to the native UIKit Picker, which Uno 7 removes, and no navigator has handled that route since the picker navigator was dropped, so the call never completed a navigation. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01WHHcu5U9N25wvKGNFCrpJm
Uno.WinUI 7.0 has no android/ios asset, but a net10.0-android/ios library still binds to its net10.0 one, and Uno 7 keeps a library's own platform build on device. Without these targets every __ANDROID__/__IOS__ path was compiled out: KeyStore/Keychain storage, the native HTTP handlers, the mobile logging sinks and the Android layout yield. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01WHHcu5U9N25wvKGNFCrpJm
Storage.UI builds for Android and iOS again, so KeyStoreKeyValueStorage and KeyChainKeyValueStorage exist on those heads. This reverts 72544a7. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01WHHcu5U9N25wvKGNFCrpJm
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01WHHcu5U9N25wvKGNFCrpJm
- Uno 7 ships no browserwasm build of the library, so the browser runs the net10.0 one, where UNO_EXT_MSAL_BROWSER was never defined - The provider fell through to MsalCacheHelper, logged an error on every sign-in and kept the cache in memory only - Pick the cache backend at runtime with PlatformHelper.IsWebAssembly Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FPSdng7F3X9AsxqXSqN8p3
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FPSdng7F3X9AsxqXSqN8p3
- Serilog.Settings.Configuration 3.3.0 floors it at 3.0.0, which pulls System.Text.Encodings.Web 4.6.0 (GHSA-ghhp-997w-qr28) - The dropped System.Text.Json 8.0.5 pin used to lift that floor; CI's SDK doesn't prune the package, so NU1904 broke the package and sample builds Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FPSdng7F3X9AsxqXSqN8p3
…ests - It topped up the .NET 9 SDK for the runner tool; the shared uno-check template installs 10.0.101 now - Laying a second SDK over it failed with EACCES on the Android workload manifest, so the lane never ran a test Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FPSdng7F3X9AsxqXSqN8p3
- On Uno 7 App no longer derives from UIApplicationDelegate, so UIApplication.Main(args, null, typeof(App)) aborted at launch with "Unable to instantiate the UIApplication delegate instance" - The iOS runtime-test app never ran a test and the lane timed out Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FPSdng7F3X9AsxqXSqN8p3
- Add an Extensions 8.0 upgrade section: .NET 10, no Mac Catalyst, the removed ShowPickerAsync and the Skia-mobile storage switch - AGENTS.md, the spec and tfms-ui-winui-apps.props still said libraries target only net10.0 and Windows; they build Android and iOS too - Record the MSAL cache and iOS entry-point fixes; correct the CI SDK band Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FPSdng7F3X9AsxqXSqN8p3
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FPSdng7F3X9AsxqXSqN8p3
MartinZikmund
force-pushed
the
dev/mazi/uno70
branch
from
September 25, 2026 05:38
d4bf60e to
28d04f6
Compare
19 tasks
- Uno.Wasm.Bootstrap trims whenever a linker descriptor is present, which turns reflection-based System.Text.Json off on the Uno 7 WebAssembly head - The default IKeyValueStorage then threw InvalidOperationException for a plain string; UseStorage now adds source-generated string metadata Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FPSdng7F3X9AsxqXSqN8p3
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
MartinZikmund
added a commit
to unoplatform/uno.templates
that referenced
this pull request
Sep 26, 2026
First Uno.Extensions build against Uno 7.0 (unoplatform/uno.extensions#3181). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01S7pvhfdLGtN6sLKmpF8msc
2 of 7 tasks
4 of 7 tasks
3 of 7 tasks
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.
GitHub Issue (If applicable): relates to unoplatform/uno-private#2072
PR Type
Description
Retargets Uno.Extensions to Uno Platform 7.0 (
Uno.Sdk.Private7.0.0-dev.701,net10.0). This is the Uno.Extensions counterpart to Uno.Themes#1722 and uno.toolkit.ui#1635.The upstream block is cleared:
Uno.Toolkit.WinUI11.0.0-dev.90andUno.Material/Uno.Themes.WinUI9.0.0-dev.16are published againstUno.WinUI7.0.0-dev.701. Every app head and UI-test surface now builds. Full picture inspecs/014-uno-7-retarget/spec.md.What's green
Uno.Extensions-packageonly.slnfbuilds with 0 errors and packs all 38 packages, and the whole unit-test layer passes — 1,613 tests, including the 1,433 Reactive ones.Every app head builds too:
Uno.Extensions-runtimetests.slnf(desktop),Playground.slnandTestHarness.sln(desktop + Windows), and the Android head of all four apps.The shape of the change
Uno 7 renders with Skia on every platform, so
Uno.WinUI7.0 ships library assets only fornet10.0andnet10.0-windows10.0.19041.0. Libraries and app heads therefore need different TFM lists, which drove the largest structural change here.chore!:Target Uno.Sdk.Private 7.0 and net10.0net9.0tonet10.0, Mac Catalyst dropped,MSBuild.Sdk.Extrasremoved (unreferenced, and MSB4184 on the .NET 10 SDK), framework-provided packages removed (NU1510)refactor!:Split app-head TFMs from the shipped library settfms-ui-winui.propskeepsnet10.0+net10.0-windows; the deadtfms-ui-winui-runtimetests.propsis reused astfms-ui-winui-apps.propsfor the heads and the projects deployed into themfix:Replace System.Linq.Async with the .NET 10 built-in AsyncEnumerablefix!:Bind to the renamed Uno.UI.Extras storage helper (BC53)Uno.UI.Toolkit.StorageFileHelperbecomesUno.Storage.StorageFileHelper, plus the PRI workaround pathschore(deps):Move MAUI, Microsoft.Extensions and C# Markup to the 7.0 lineMicrosoft.Extensions.*10.0.12, Markup 7.0.0-dev.9chore!:Drop Mac Catalyst from the app heads and align them with Uno 7 floorsPlatforms/MacCatalystfolders; retires two workarounds whose preconditions are gonetest:Fix the navigation hot-reload testsDataContext(CS8600) + 8 XAML pages never listed asPageitemsci:Move the pipelines to .NET 10 and the Uno 7 TFMsnet9.0-*pathdocs:Record the retarget and refresh stale net9 guidanceAGENTS.mdfix(ci):Pin the SDK uno.check provisions and select Xcode 26.110.0.101(on10.0.102everynet10.0-iosproject failedNETSDK1147on Windows agents); Xcode 26.1.1 + iOS 26.1 runtime, which .NET for iOS 26.1 requires; the static web app workflow moves off the 9.0 SDK (NETSDK1045)docs:Satisfy the spell-check gaterefactor(navigation):Drop the native frame templates from ModalFlyoutios:/android:templates used Toolkit'sNativeFramePresenter, which Toolkit 11 removes; the library only targetsnet10.0+ Windows, so they never compiledchore(deps):Move C# Markup to 7.0.0-dev.33Uno.WinUI.Markup,Uno.Extensions.Markup.WinUIand the generators move to the first Uno 7 build; the three*.Markupprojects build without UNOB0020fix(runtimetests):Pin AndroidX Lifecycle.Process in the runtime-tests headchore(deps):Move Toolkit to 11.0 and Themes to 9.0 for Uno 7UnoToolkitVersion8.4.2 →11.0.0-dev.90,UnoThemesVersion6.1.1 →9.0.0-dev.16, insrc/andsamples/; the local override inMauiEmbedding.csprojgoes awaychore(deps):Build every head without Hot Design and MCP supportUnoDisableHotDesign/UnoDisableMCPSupportmove to the rootDirectory.Build.propstest(runtimetests):Move the test engine to the build that survives Uno 72.0.0-dev.81; see belowfix!:Build the Android heads against Uno 7'sNativeApplicationCreateHost()override; UniversalImageLoader drops out with the non-Skia pipelinefix(testharness):Drop the platform key-value stores that Uno 7 removesKeyStoreKeyValueStorage/KeyChainKeyValueStorageexist in no assembly a head can see nowchore(deps):Raise the AndroidX pins to the floors MAUI 10.0.90 requirestest(navigation):Give the Region logger test two distinct logger instancesNullLoggerFactory.CreateLogger(name)returns one shared singleton, so the test's two "different" loggers were the same objectWorth a closer look: the System.Linq.Async collision
.NET 10 ships
System.Linq.AsyncEnumerablein the BCL, which collides head-on with theSystem.Linq.Asyncpackage — 104 CS0121 plus 11 cascading CS0149 inUno.Extensions.Reactive.The BCL covers every operator this repo uses except four Ix.NET-only ones, so the package is dropped and those four (
ForEachAsynctwice,ForEachAwaitAsync, and aFunc-shapedForEachAwaitWithCancellationAsync) are re-homed into the existing internalAsyncEnumerableExtensions. The repo's ownFirstOrDefaultAsync(source, defaultValue, ct)goes away — .NET 10 now ships an identical one.MoveNextAsync(ct)was also an Ix extension and returns asAsyncEnumeratorExtensions, preserving its semantics (throw if cancelled, then move); without it, cancellation between two moves is silently no longer observed.CombineFeed.ttneeded no change — the generatedSelectcalls pass explicit type arguments and bind to exactly one BCL overload.Bumping to
System.Linq.Async7.0.1 also resolves the ambiguity, but every survivingForEach*there is[Obsolete], which this repo'sTreatWarningsAsErrorsturns into 14 build errors.Not marked breaking: both colliding classes are
internal. Note this collision already affects the shippedUno.Extensions.Reactive7.3.6 for any net10.0 consumer app, independently of Uno 7 — worth considering for a 7.3.x servicing patch.What the Toolkit release cost
Three things had to move with it.
Hot Design and MCP support are off repo-wide. Neither has an Uno 7 build.
Uno.UI.HotDesign1.23.0-dev.174 is still net9.0 against Uno 6.8 and pullsUno.Toolkit.WinUI9.1.3 with it.Uno.UI.App.Mcp2.0.0-dev.4 is net9.0 against SkiaSharp 3.119 — itsGlobalStaticResourcesinitializer threwFileNotFoundExceptionforSkiaSharp.Views.WindowsbeforeOnLaunchedran, which killed the runtime-test host at startup and surfaced as the engine's misleading "Window content is being set before the application is initialized".UnoDisableHotDesign/UnoDisableMCPSupportnow live in the rootDirectory.Build.props; the CI mobile stages already passed them.The runtime-test engine moves to
2.0.0-dev.81. Uno 7 movedPointerPointPropertiesfromWindows.UI.InputtoMicrosoft.UI.Input, and dev.79'sInputInjectorHelperhard-casts to the Windows type. That cast runs inCleanupPointersafter every test, so the desktop lane reported 136 failures over 105 cases, allInvalidCastException. dev.81 reads the button states reflectively and is otherwise byte-identical to dev.79; dev.85 and later additionally require MSTest 4.x, which this repo is not on.The Android heads must override
CreateHost().Microsoft.UI.Xaml.NativeApplicationis abstract in Uno 7, andCreateHost()is the Android equivalent ofMain— Android has no managed entry point, so the host is built when the firstApplicationActivitystarts.ConfigureUniversalImageLoadergoes with it:Com.Nostra13.Universalimageloaderis the non-Skia image pipeline and is no longer referenced.Known and deliberately not fixed here
UserControl/Pagereparent ontoControl, soApplicationBuilderExtensions.NavigateAsync<TShell>()'sas ContentControlcast silently fails for any Shell not implementingIContentControlProvider, giving a permanent blank screen. The maintained template and this repo's samples implement it, so they are unaffected — but this needs a runtime-verified fix and a regression test rather than a blind change inside a retarget PR.PrimaryLanguageOverrideis now restart-to-apply, which is exactly whatLocalizationService.SetCurrentCultureAsyncrelies on for live language switching. No compile signal; needs a runtime test.Uno.UI.RuntimeTests.Enginebreaks MSIX packaging on the Windows leg of the RuntimeTests head (APPX0002). CI does not build that leg.Uno.Extensions.Reactivestill ships aUno.Toolkit7.0.7 dependency with no visible consumer in the package. It resolves upward next to Toolkit 11, but it is a stale floor to carry into a 7.0 release.version.jsonstill reads7.4-dev.{height}; Themes took a major bump to 9.0 and Toolkit to 11.0. That is a release decision.Verification
MSBuild Uno.Extensions-packageonly.slnf -r -m -p:Configuration=Release— 0 errors, 38 packages, acrossnet10.0,net10.0-android,net10.0-ios,net10.0-windows10.0.19041.dotnet test Uno.Extensions-packageonly.slnf -c Release --filter "FullyQualifiedName!~UI.Tests"— 1,613 passed, 0 failed.Uno.Extensions-runtimetests.slnf(desktop),Playground.slnandTestHarness.sln(desktop + Windows), andnet10.0-androidfor all four heads — 0 errors each.packages.json(Uno.Sdk.Private7.0.0-dev.701) rather than copied between repos.lib/net10.0/Uno.UI.Extras.dll, which containsUno.Storageand noUno.UI.Toolkit.Not verified: no runtime or visual pass on a device. iOS is not buildable on a Windows host, and the WASM head's native-asset link step needs the
wasm-toolsworkload (CI has it). The JDK 11 to 17 bump only takes effect on the CI Android stage.Run the runtime tests on Linux, not on Windows. CI runs every runtime-test lane on
ubuntu-24.04under xvfb and main is green on all of them. On a Windows host with the Win32 Skia backend, 12 desktop tests fail on the Uno 6 merge base exactly as they do here — host-specific, not retarget fallout, but it means a local Windows run is not a usable signal for that lane. Details in the spec.Note for reviewers building locally:
dotnet buildcannot build a WinUI project that has XAML pages on Uno 7 (UNOB0008 — the SDK refuses it by design). Use MSBuild, as CI'sMSBuild@1task does.Update: CI fixes and library targets (2026-09-23)
Libraries build for Android and iOS again. This corrects the "Split app-head TFMs" premise above. A
net10.0-android/net10.0-ioslibrary still builds againstUno.WinUI'snet10.0asset,Uno.WinRT7.0 still ships Android and iOS assets, and Uno 7's asset selector keeps a library's own platform build on device. Withnet10.0only, every__ANDROID__/__IOS__path was compiled out: KeyStore/Keychain storage (tokens fell back to unencryptedApplicationData), the native HTTP handlers, the Serilog/OSLog mobile sinks, and the Android layout yield.tfms-ui-winui.propsaddsnet10.0-androidandnet10.0-iosback. The TestHarness storage workaround is reverted, and the storage/MSAL docs now describe the Uno 7 defaults. The iOS-onlyShowPickerAsyncis removed, since it routed to the nativePickerthat Uno 7 removes, and no navigator has handled that route for a long time.Hot-reload lane. XAML hot reload doesn't need Hot Design. The runtime-test app called
UseStudio()only when Hot Design was enabled, so with Hot Design disabled nothing registered the window, and every XAML delta arrived but was never applied to the tree (Unable to access Dispatcher/DispatcherQueue in order to invoke UpdateVisualTree). It now callsEnableHotReload()in that case. Two more causes were in the test data: both region hot-reload test pages had been committed in their mid-edit state, and the route-gate file's comment quoted the patch text, so the patch and its revert hit the comment. Local run of the full_HotReloadsuite: 65/65 passed (41/65 before).WebAssembly UI-test lane disabled, tracked in #3187.
Uno.UITest.Seleniumfinds elements and reads properties through the native WebAssembly DOM renderer, which Uno 7 removed: 0 of 52 passed, and the job hit its 60-minute timeout.Build and Deploy Job(Azure Static Web Apps) is not caused by this PR. It fails on every PR in the repo with "This Static Web App already has the maximum number of staging environments". Someone with Azure access needs to delete stale environments.Local validation for these commits:
Uno.Extensions-packageonly.slnf(Release) with 0 errors onnet10.0,net10.0-androidandnet10.0-ios. The Windows TFM needs MSBuild and is left to CI. The Android Storage build containsKeyStoreKeyValueStorage, the iOS build containsKeyChainKeyValueStorage, and plainnet10.0has neither. TestHarness builds fornet10.0-androidandnet10.0-ios._HotReloadsuite, 65/65 on Skia Desktop (Windows host).PR Checklist
🤖 Generated with Claude Code
https://claude.ai/code/session_01XKVS6HsqQKi8xT8dQ3REDT