Skip to content

fix(deps): build against Toolkit 11.0.0-dev.155 and Themes 9.0.0-dev.56 to drop the Uno.UI.Lottie reference - #3263

Merged
ajpinedam merged 2 commits into
mainfrom
dev/anpi/uno-ui-lottie-ref
Oct 26, 2026
Merged

ajpinedam merged 2 commits into
mainfrom
dev/anpi/uno-ui-lottie-ref

Conversation

@ajpinedam

Copy link
Copy Markdown
Contributor

GitHub Issue (If applicable): closes #3262

PR Type

  • Bugfix
  • Build or CI related changes

What is the current behavior?

Recommended template apps on Uno.Sdk 7.0.0-dev.89 that use Navigation with the Toolkit (e.g. -preset recommended -presentation mvux -theme material) never show a window. In Debug and in Release, they fail with:

System.IO.FileNotFoundException: Could not load file or assembly 'Uno.UI.Lottie, Version=255.255.255.255, ...'
   at Uno.Extensions.Navigation.Toolkit.WinUI.GlobalStaticResources.Initialize()
   at QaApp.GlobalStaticResources.Initialize()
   at QaApp.GlobalStaticResources..cctor()

No resource in this repo uses Lottie. The Uno XAML generator makes a library's GlobalStaticResources.Initialize() call Initialize, RegisterDefaultStyles and RegisterResourceDictionariesBySource on the GlobalStaticResources of every referenced assembly that has XAML, transitive ones included. We build against Toolkit 11.0.0-dev.140 and Themes 9.0.0-dev.41, which depend on Uno.WinUI.Lottie, so these calls are compiled into:

  • Uno.Extensions.Navigation.Toolkit.UI.dll (8.0.0-dev.101, .118, .123);
  • Uno.Extensions.Reactive.UI.dll, which the app initializes right after Navigation.Toolkit and fails the same way.

Since unoplatform/uno#25117, Lottie is part of Uno.WinUI. Toolkit 11.0.0-dev.155 and Themes 9.0.0-dev.56, which Uno.Sdk 7.0.0-dev.89 pins, no longer depend on Uno.WinUI.Lottie, so nothing ships Uno.UI.Lottie.dll. The Fluent template works only because its UnoFeatures include Lottie, which still brings in Uno.WinUI.Lottie 7.0.0-dev.1574.

What is the new behavior?

The packages are built against the Toolkit/Themes that Uno.Sdk 7.0.0-dev.89 pins, so no packed assembly references Uno.UI.Lottie.

  • global.json: Uno.Sdk.Private 7.0.0-dev.2162 → 7.0.0-dev.2428. Toolkit .155 and Themes .56 require Uno.WinUI >= 7.0.0-dev.2285, and 2428 is the Uno.WinUI that Uno.Sdk 7.0.0-dev.89 uses. Its packages.json differs from 2162 only by adding Uno.WinUI.Graphics3DWebGpu.
  • src/Directory.Packages.props and samples/Directory.Packages.props: Toolkit 11.0.0-dev.140 → 11.0.0-dev.155, Themes 9.0.0-dev.41 → 9.0.0-dev.56. The pins stay: Uno.Sdk.Private 7.0.0-dev.2428 still defaults to .140/.41. The comment now says why the pins have to follow the public SDK.

specs/020-uno-ui-lottie-reference/progress.md has the findings and results.

PR Checklist

Other information

Results:

  • Uno.Extensions-packageonly.slnf, Release: 0 errors, 38 packages. The only warnings are CS1591, all from the 14 projects that list it in WarningsNotAsErrors.
  • Unit-test layer (FullyQualifiedName!~UI.Tests): all pass. Reactive: 1492 passed, 19 skipped, the same as main.
  • None of the 93 assemblies under lib/ in the 38 packages references Uno.UI.Lottie; the same scan finds it in the published 8.0.0-dev.118. The Navigation.Toolkit.WinUI and Reactive.WinUI nuspecs depend on Toolkit 11.0.0-dev.155 and Uno.WinUI 7.0.0-dev.2428.
  • Playground desktop head: builds with no NuGet or compile warnings, and resolves Toolkit .155 and Themes .56.

The issue's repro app (Uno.Sdk 7.0.0-dev.89, Recommended, MVUX, Material), with UnoExtensionsVersion pointed at the locally packed packages:

  • Release: restores and builds with 0 warnings, and no assembly in the output has an unresolved reference. A window appears in about 2 s in 3 runs out of 3, showing the main page ("Enter your name:", "Go to Second Page"). With 8.0.0-dev.118, there is no window after 30 s.
  • Debug: still no window. It now fails in Uno.UI.App.Mcp.Client.GlobalStaticResources.Initialize(): App MCP 2.0.0-dev.16 and HotDesign 2.0.0-dev.31 reference Uno.UI.Lottie the same way. They aren't built in this repo, so Debug template apps stay broken until they ship rebuilt packages.

Not covered: the XAML generator's hard calls into transitive references make every Uno library break when a dependency drops a package. That needs fixing in unoplatform/uno, not here.

🤖 Generated with Claude Code

ajpinedam and others added 2 commits October 25, 2026 10:47
- Toolkit 11.0.0-dev.140 and Themes 9.0.0-dev.41 depend on Uno.WinUI.Lottie. The XAML
  generator compiles a call to the GlobalStaticResources of every referenced XAML assembly,
  so Navigation.Toolkit.WinUI and Reactive.WinUI hard-referenced Uno.UI.Lottie.
- Uno.Sdk 7.0.0-dev.89 apps no longer ship that assembly (Lottie is part of Uno.WinUI since
  unoplatform/uno#25117), so they failed with FileNotFoundException before any window.
- Move Toolkit and Themes to the versions Uno.Sdk 7.0.0-dev.89 pins, and Uno.Sdk.Private to
  7.0.0-dev.2428, the Uno.WinUI that SDK uses (both packages require >= 7.0.0-dev.2285).

Fixes #3262

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ajpinedam ajpinedam self-assigned this Oct 25, 2026
@mergify

mergify Bot commented Oct 26, 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.

@ajpinedam
ajpinedam merged commit 9051f07 into main Oct 26, 2026
27 of 28 checks passed
@ajpinedam
ajpinedam deleted the dev/anpi/uno-ui-lottie-ref branch October 26, 2026 15:44
ramezgerges added a commit to unoplatform/uno.chefs that referenced this pull request Oct 26, 2026
Uno.Sdk 7.0.0-dev.89 pins Uno.Extensions 8.0.0-dev.118, whose
Navigation.Toolkit still initializes Uno.UI.Lottie, which Uno 7 no longer
ships. The app died at startup in GlobalStaticResources with a
FileNotFoundException. dev.126 has the fix (unoplatform/uno.extensions#3263).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants