Skip to content

chore: Rebuild against current Uno 7.0 Core (7.0.0-dev.2162) - #3223

Merged
MartinZikmund merged 6 commits into
mainfrom
dev/mazi/core-7-rebuild
Oct 12, 2026
Merged

MartinZikmund merged 6 commits into
mainfrom
dev/mazi/core-7-rebuild

Conversation

@MartinZikmund

@MartinZikmund MartinZikmund commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

Summary

Rebuilds the 7.0 packages (Uno.Extensions.* 8.0.0-dev.*) against current Uno Platform 7.0 Core. 8.0.0-dev.76 was built against Uno.WinUI 7.0.0-dev.701 and its assemblies still reference types and members that current Core removed or moved (see unoplatform/uno#25067).

Core version used: Uno.Sdk.Private / Uno.WinUI 7.0.0-dev.2162 (the newest 7.0 dev build on nuget.org; newer than 7.0.0-dev.2097). Toolkit 11.0.0-dev.140, Themes 9.0.0-dev.41.

What changed

Removed or moved in Core Replacement now referenced by the rebuilt assemblies
WinRT.Interop.WindowNative / InitializeWithWindow expected in Uno.UI resolved in Uno.WinRT (Navigation.UI)
DependencyObject.SetBinding (uno#24658) BindingOperations.SetBinding / FrameworkElement.SetBinding (Navigation.Toolkit.UI, Reactive.UI)
Microsoft.UI.Colors expected in Uno.UI (uno#24773) resolved in Uno.WinRT (Reactive.UI)
VisualState(Group).Name setters now internal (uno#24634) no call sites; no set_Name is referenced on those types

These four needed no source change: recompiling against the new Core is enough, because the call sites were already WinUI-shaped.

Source and build changes needed for the new dependency graph:

  • Dependency bump: global.json, Toolkit and Themes pins (src and samples).
  • Uno.Core.Extensions.{Collections,Logging,Logging.Singleton} pins to 5.0.0-dev.34 (NU1109 downgrade against Core and Toolkit otherwise).
  • WindowsSdkPackageVersion 10.0.19041.57 to .87: Toolkit is compiled against WinRT.Runtime 2.3.1 (only in the .87 projection); .57 fails CS1705 on the Windows target.
  • NU1608 silenced on the MAUI heads: the SDK now supplies newer AndroidX than MAUI's Ktx packages allow.
  • Storage.UI: AddJsonTypeInfo(KeyValueStorageContext.Default) is an implicit collection expression over IEnumerable<> (params IEnumerable), which the newer CsWinRT rejects (CsWinRT1032). It now passes an explicit array.

App heads (Playground, TestHarness, runtime tests, MauiEmbedding), found by the first CI run:

  • Microsoft.UI.Xaml.NativeApplication / ApplicationActivity (Android) are now Uno.UI.Runtime.Android.*.
  • using Uno.UI.Runtime.Skia; no longer resolves on the desktop heads (CS0234); removed.
  • Uno.UI.RuntimeTests.Engine 2.0.0-dev.89 to 2.0.0-dev.103: dev.89 XAML uses the removed skia conditional prefix (UXAML0007).
  • AndroidX pins aligned with what Uno.Sdk.Private 7.0.0-dev.2162 supplies (NU1605/NU1109 otherwise); Lifecycle.Process 2.11.0.1 in the runtime-tests head.
  • MauiEmbedding Android: Fragment.Ktx, Lifecycle.LiveData and LiveData.Core.Ktx are referenced at the merged-package versions, because MAUI's older Ktx packages duplicate classes and fail D8.

Validation

  • Uno.Extensions-packageonly.slnf builds and packs in Release with MSBuild (dotnet build is refused by the new SDK for WinUI libraries with XAML, UNOB0008), net10.0 and net10.0-windows10.0.19041. Playground and TestHarness build for net10.0-windows10.0.19041 and net10.0-desktop; the runtime-tests head for net10.0-desktop and net10.0-browserwasm; the runtime-tests, Playground, TestHarness and MauiEmbedding heads for net10.0-android. iOS was not built locally.
  • Metadata scan (System.Reflection.Metadata) of the rebuilt net10.0 assemblies: the WindowNative, InitializeWithWindow, Colors, SetBinding and VisualState references resolve as listed above; no DependencyObject.SetBinding reference remains.
  • Unit tests (Release, net10.0): Authentication 14, Authentication.MSAL 39, Configuration 3, Core 61, Reactive 1469 (19 skipped), Serialization 20, HotTesting.Reactive 34; all pass. Navigation.Tests and the runtime-test heads are not part of the package solution filter and were not run.

Known leftover

Toolkit 11.0.0-dev.140 and Themes 9.0.0-dev.41 still depend on Uno.WinUI.Lottie 7.0.0-dev.1574, although Lottie was folded into Uno.UI (uno#24153). Built assemblies therefore still carry a Uno.UI.Lottie.GlobalStaticResources reference. This needs a Toolkit/Themes rebuild; it does not fail the build.

🤖 Generated with Claude Code

https://claude.ai/code/session_013yZfe9CjkLZqGRwjwfXyQ7

MartinZikmund and others added 4 commits October 12, 2026 09:20
Uno.WinUI 7.0.0-dev.2162 and Toolkit 11.0.0-dev.140 depend on dev.34, so the dev.28 pins now fail with NU1109.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013yZfe9CjkLZqGRwjwfXyQ7
… the MAUI heads

Toolkit 11.0.0-dev.140 is compiled against WinRT.Runtime 2.3.1, which ships in the .87 projection (.57 carries 2.2.0) and fails CS1705 on the Windows target. The SDK supplies newer AndroidX than MAUI's Ktx packages allow, which NU1608 reports as an error.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013yZfe9CjkLZqGRwjwfXyQ7
…head

The params IEnumerable overload makes the call a collection expression over IEnumerable, which CsWinRT1032 rejects in the newer CsWinRT.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013yZfe9CjkLZqGRwjwfXyQ7
@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 239024 has failed on uno.extensions.

MartinZikmund and others added 2 commits October 12, 2026 11:05
….0-dev.2162

Move the shared AndroidX pins to what the SDK supplies, Lifecycle.Process to 2.11.0.1 for the runtime-tests head, and the runtime-tests engine to 2.0.0-dev.103, whose XAML no longer uses the removed skia prefix (UXAML0007). The MAUI embedding head also pins the Fragment and LiveData Ktx packages, whose older versions duplicate classes already in the merged AndroidX packages and fail D8.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013yZfe9CjkLZqGRwjwfXyQ7
NativeApplication and ApplicationActivity now live in Uno.UI.Runtime.Android, and the Uno.UI.Runtime.Skia namespace is gone from the desktop heads.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013yZfe9CjkLZqGRwjwfXyQ7
@MartinZikmund
MartinZikmund marked this pull request as ready for review October 12, 2026 09:41
Copilot AI balanced review requested due to automatic review settings October 12, 2026 09:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@MartinZikmund
MartinZikmund merged commit c1d0a51 into main Oct 12, 2026
23 of 24 checks passed
@MartinZikmund
MartinZikmund deleted the dev/mazi/core-7-rebuild branch October 12, 2026 23:45
@mergify

mergify Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

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.

kazo0 added a commit to kazo0/DailyReflection that referenced this pull request Oct 13, 2026
… the 7.0 core

Pins UnoExtensionsVersion ahead of the Sdk (7.0.0-dev.73 still carries
8.0.0-dev.76). dev.76 was built against an older 7.0 core, and its
Navigation.UI / Reactive.UI reference types the current core no longer
has: the iOS and Android builds warned UNOB0020 ("will fail at
runtime"). dev.83 is the rebuild from unoplatform/uno.extensions#3223;
the warning is gone on every head. Drop the pin once an Sdk carries it.

This alone does not bring the pages back; see the next commit.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Qakj5qRUPLXR5HdMmDnBfZ
kazo0 added a commit to kazo0/DailyReflection that referenced this pull request Oct 13, 2026
… the 7.0 core

Pins UnoExtensionsVersion ahead of the Sdk (7.0.0-dev.73 still carries
8.0.0-dev.76). dev.76 was built against an older 7.0 core, and its
Navigation.UI / Reactive.UI reference types the current core no longer
has: the iOS and Android builds warned UNOB0020 ("will fail at
runtime"). dev.83 is the rebuild from unoplatform/uno.extensions#3223;
the warning is gone on every head. Drop the pin once an Sdk carries it.

This alone does not bring the pages back; see the next commit.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Qakj5qRUPLXR5HdMmDnBfZ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants