Skip to content

[Navigation] Uno.Extensions.Navigation.Toolkit still references Uno.UI.Lottie, so Recommended apps on Uno.Sdk 7.0.0-dev.89 fail to initialize (FileNotFoundException) #3262

Closed

Description

@khaskoul

Current behavior

With Uno.Sdk 7.0.0-dev.89, apps from the Recommended template that use Navigation with the Toolkit (for example -preset recommended -theme material) fail to initialize:

System.TypeInitializationException: TypeInitialization_Type, Uno.Extensions.Navigation.Toolkit.WinUI.GlobalStaticResources
 ---> System.IO.FileNotFoundException: Could not load file or assembly 'Uno.UI.Lottie, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
   at Uno.Extensions.Navigation.Toolkit.WinUI.GlobalStaticResources..cctor()
   at QaApp.GlobalStaticResources.Initialize() in ...\obj\Debug\net10.0-browserwasm\Uno.UI.SourceGenerators\...
App failed to initialize: System.TypeInitializationException: TypeInitialization_Type, QaApp.GlobalStaticResources
  • WebAssembly: that is the browser console. The page never shows the app.
  • Desktop: the process stays alive with no window and no output, and the Dev Server/App MCP never get an answer from it ("No response received for RequestRuntimeInfo within 30s").

The same templates work with Uno.Sdk 7.0.0-dev.81 and 6.7.30.

Cause, as far as we can tell

Confirmed on desktop. Adding the old package back to the same Uno.Sdk 7.0.0-dev.89 app makes it start normally (main page with "Enter your name:" and "Go to Second Page"):

<PackageReference Include="Uno.WinUI.Lottie" VersionOverride="7.0.0-dev.1574" />

Expected behavior

Recommended template apps on Uno.Sdk 7.0 start. Uno.Extensions packages built against the 7.0 Toolkit/Themes shouldn't reference Uno.UI.Lottie. Alternatively, Uno.WinUI could keep shipping that assembly name.

How to reproduce it (as minimally and precisely as possible)

  1. Install Uno.Templates 7.0.0-dev.89.
  2. dotnet new unoapp -n QaApp -tfm net10.0 -preset recommended -presentation mvux -theme material --sample -platforms desktop
  3. dotnet build QaApp/QaApp.csproj -f net10.0-desktop. It succeeds, and bin/.../net10.0-desktop/ has no Uno.UI.Lottie.dll.
  4. Run QaApp.exe. The process starts but no window appears, even after 25 s.
  5. For the exception text, generate with -platforms wasm (we used -pwa -server), run it and open the browser console.

What we saw:

  • WebAssembly: 2 of 2 runs on 7.0.0-dev.89, Recommended + Material + PWA + Server.
  • Desktop: the App MCP timeouts in 6 tests on 7.0.0-dev.89 (MVUX and MVVM with Material, Cupertino, C# Markup and localization). The window and the package-reference fix were checked once by hand.
  • Not affected: the same tests pass on 7.0.0-dev.81 and 6.7.30. The blank preset and the Fluent theme also work on 7.0.0-dev.89, but we didn't look into why Fluent works.

Workaround

Add <PackageReference Include="Uno.WinUI.Lottie" VersionOverride="7.0.0-dev.1574" /> to the app project. We checked this on desktop only.

Affected platforms

WebAssembly and Desktop (Skia), Windows. We didn't try the mobile targets.

Uno.Sdk version (and other relevant versions)

  • Uno.Sdk / Uno.Templates 7.0.0-dev.89, which pins Uno.WinUI 7.0.0-dev.2428, Uno.Extensions 8.0.0-dev.118, Uno.Toolkit 11.0.0-dev.155 and Uno.Themes 9.0.0-dev.56
  • Works: Uno.Sdk 7.0.0-dev.81 (Extensions 8.0.0-dev.101, Toolkit 11.0.0-dev.143, Themes 9.0.0-dev.44) and 6.7.30
  • .NET SDK 10.0.401, Windows 11 Pro (26200)

IDE version

None (CLI)

Anything else we need to know?

  • Found by automated QA of the Uno SDK. The WASM console log pointed to the missing assembly. We then compared package dependencies and assembly references between the two SDK versions, and confirmed with the package reference above.
  • We didn't identify which resource in Navigation.Toolkit's GlobalStaticResources pulls in the Lottie type.

Activity

  1. added theissue type on Oct 25, 2026
  2. self-assigned this
    on Oct 25, 2026
  3. added
    7.0
    on Oct 27, 2026
  4. agneszitte commented on Oct 28, 2026

    @agneszitte
    Member

    @khaskoul can you retest this issue with latest Uno.Sdk 7.0.0-dev.97 version please

  5. khaskoul commented on Oct 29, 2026

    @khaskoul
    Author

    I retested this on Uno.Sdk 7.0.0-dev.97. The Uno.UI.Lottie reference is gone from Uno.Extensions.Navigation.Toolkit.UI.dll, but Material apps are still broken: on dev.89 the desktop apps connected to the Dev Server and never answered App MCP, on dev.97 they never connect at all, and the WebAssembly app still fails with the Lottie error. The missing Uno.UI.Lottie assembly now comes from a different place than the one this issue fixed, so I would reopen this one, or point me to a new issue if you prefer to track it separately.

    Setup

    • Uno.Sdk / Uno.Templates 7.0.0-dev.97, which pins Dev Server host 7.0.0-dev.2498, Uno.Extensions 8.0.0-dev.147, Uno.Toolkit 11.0.0-dev.156 and Uno.Themes 9.0.0-dev.59
    • uno-devserver CLI 7.0.0-dev.2345
    • .NET SDK 10.0.401, Windows 11, net10.0-desktop (plus Chromium for the WebAssembly case)
    • dotnet new unoapp -preset recommended -presentation mvux -theme material --sample -platforms desktop -tfm net10.0

    Static check

    Uno.UI.Lottie is no longer referenced by lib/net10.0/Uno.Extensions.Navigation.Toolkit.UI.dll (package Uno.Extensions.Navigation.Toolkit.WinUI): 8.0.0-dev.118 (dev.89 SDK) references it, 8.0.0-dev.147 (dev.97 SDK) does not. The dev.97 Material app has no Uno.UI.Lottie.dll in its output.

    Runtime result on dev.97 (desktop, Material MVUX)

    1. The app builds without warnings.
    2. uno-devserver app start ... --connectionTimeoutSeconds 90: the app process starts, its RemoteControl client does not connect within 90 s, and the process keeps running.
    3. app info, app tree and app screenshot fail with "No response received for RequestRuntimeInfo ... within 30s".
    4. Running the built app with a first-chance exception hook shows the cause, which the build log does not:
      FileNotFoundException: Could not load file or assembly 'Uno.UI.Lottie, Version=255.255.255.255' followed by TypeInitializationException: The type initializer for 'QaApp.GlobalStaticResources' threw an exception. The App constructor throws, so the app never reaches the Dev Server.

    Control and bisect (desktop, same machine, same Dev Server)

    App Result
    dev.97, -preset blank connects, app info answers
    dev.97, recommended MVUX, -theme fluent connects, app info answers
    dev.97, recommended MVUX, -theme material never connects, exception above
    dev.95, recommended MVUX, -theme material never connects, same exception
    dev.92, recommended MVUX, -theme material never connects, same exception

    So it is not a general dev.97 problem, it is specific to the Material setup, and it already happens on dev.92 and dev.95.

    Root cause trace

    • The WebAssembly stack names the failing type: Uno.UI.App.Mcp.Client.GlobalStaticResources..cctor() called from QaApp.GlobalStaticResources.Initialize().
    • Uno.UI.App.Mcp.Client.dll (package Uno.UI.App.Mcp 2.0.0-dev.18) has a type reference to Uno.UI.Lottie.GlobalStaticResources, and the Uno.UI.HotDesign.*.dll assemblies (package Uno.UI.HotDesign 2.0.0-dev.31) have an assembly reference to Uno.UI.Lottie 255.255.255.255. Both were built against a Uno.UI that still had a separate Lottie assembly.
    • In dev.97 Lottie is built into Uno.WinUI: the Sdk drops the Lottie feature (Uno.Features.targets: "Lottie is built into Uno.WinUI") and the generated App code uses Uno.UI.Lottie.LottieVisualSourceProvider from Uno.UI.dll. Uno.UI.Lottie.GlobalStaticResources does not exist there.
    • Uno.UI.Lottie.dll still reaches some apps only by accident, through package Uno.WinUI.Lottie 7.0.0-dev.1574. Uno.UI.HotDesign 2.0.0-dev.31 depends on Uno.Themes.WinUI 9.0.0-dev.41 and Uno.Toolkit.WinUI 11.0.0-dev.142, and those two depend on Uno.WinUI.Lottie. The blank and Fluent apps resolve Themes 9.0.0-dev.41, so the old assembly is present and they start.
    • A Material app gets Uno.Themes.WinUI 9.0.0-dev.59 from the Sdk pins, and Themes 9.0.0-dev.59, Toolkit 11.0.0-dev.156 and Navigation.Toolkit 8.0.0-dev.147 no longer depend on Uno.WinUI.Lottie. Nothing supplies Uno.UI.Lottie.dll, so the Uno.UI.App.Mcp.Client static constructor throws.
    • Confirmed by adding <PackageReference Include="Uno.WinUI.Lottie" VersionOverride="7.0.0-dev.1574" /> to the failing dev.97 Material desktop app: it then connects and app info answers. Copying the dll next to the output is not enough, it has to be in deps.json.

    Automated results (three runs of the same cases, Latest Dev Build 7.0.0-dev.97, passes out of 3)

    Case Option set Passed
    TPL-02 recommended, MVUX, Material, sample 0 of 3
    TPL-03 recommended, MVVM, Material 0 of 3
    TPL-04 C# Markup, recommended 0 of 3
    TPL-05 Cupertino and Simple themes 0 of 3
    TPL-14 localization 0 of 3
    HR-12 MVUX app, Hot Reload edit 0 of 3
    TPL-08 recommended, Material, WebAssembly 0 of 3

    Each desktop failure is "Timed out after about 197 s waiting for an app to connect to the Dev Server (app info returns a Process Id). Last observation: no connected app instance". TPL-08 logs App failed to initialize: System.TypeInitializationException ... Uno.UI.App.Mcp.Client.GlobalStaticResources ---> System.IO.FileNotFoundException: Could not load file or assembly 'Uno.UI.Lottie, Version=255.255.255.255'.

    Result

    The Navigation.Toolkit reference from this issue is fixed in 8.0.0-dev.147. The same missing Uno.UI.Lottie assembly now breaks every app whose Sdk pins move Themes past 9.0.0-dev.41 (Material, Cupertino, Simple theme, localization case), on desktop (the app never connects) and WebAssembly (the app fails to initialize), because Uno.UI.App.Mcp 2.0.0-dev.18 and Uno.UI.HotDesign 2.0.0-dev.31 still reference the removed assembly. Those packages need to be rebuilt against the merged Uno.UI. I would reopen this issue, or track the packaging problem in a new one in the repository that owns those packages.

  6. removed
    7.0
    on Oct 29, 2026
  7. Xiaoy312 commented on Oct 30, 2026

    @Xiaoy312
    Contributor

    The fixes for the Uno.UI.Lottie startup crash have been merged:

    • unoplatform/uno.app-mcp#233: Uno.UI.App.Mcp is built against Uno 7.0.0-dev.2498, which has Lottie built into Uno.WinUI (published as 2.0.0-dev.19).
    • unoplatform/uno.hotdesign#8359: Uno.UI.HotDesign is built against the same Uno version.

    Apps need both packages to start. The Uno.Sdk version that carries both fixes is still TBA.

  8. MartinZikmund commented on Nov 2, 2026

    @MartinZikmund
    Member

    Fixed by #3263. Uno.Extensions 8.0.0-dev.147 and later no longer reference Uno.UI.Lottie (retested on Uno.Sdk 7.0.0-dev.97), and Uno.Sdk 7.0.0-dev.127 pins 8.0.0-dev.150. The remaining Material-app startup crash comes from Uno.UI.App.Mcp / Uno.UI.HotDesign and is tracked in unoplatform/uno.app-mcp#230.

    Closing as fixed and moving to Ready for QA Review on the team board.

  9. khaskoul commented on Nov 4, 2026

    @khaskoul
    Author

    Verified on Uno.Sdk 7.0.0-dev.130: the apps from this issue start again

    The cases that failed here (recommended preset with the Material theme in MVUX and MVVM, the C# Markup recommended app, the Cupertino and Simple themes, localization, the MVUX Hot Reload edit, and the WebAssembly Material PWA) pass 3 of 3 on 7.0.0-dev.130, which pins Uno.Extensions 8.0.0-dev.155, Uno.UI.App.Mcp 2.0.0-dev.19 and Uno.UI.HotDesign 2.0.0-dev.38 (Dev Server host 7.0.0-dev.2538, uno-devserver CLI 7.0.0-dev.2345, Windows 11, .NET SDK 10.0.401). The apps connect and answer app info and app tree; the WebAssembly console no longer shows the TypeInitializationException. No Uno.UI.Lottie reference is left in Uno.Extensions.Navigation.Toolkit.UI.dll (checked on 8.0.0-dev.147) or in the two client packages. Nothing left from our side.

  10. added 2 commits that reference this issue on Nov 6, 2026
    864e65a
    215fe03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions