Repository navigation
Description
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
Uno.Extensions.Navigation.Toolkit.UI.dllhas an assembly reference toUno.UI.Lottie. That holds for 8.0.0-dev.101, 8.0.0-dev.118 (pinned by Uno.Sdk 7.0.0-dev.89) and the newest 8.0.0-dev.123 on nuget.org. All three nuspecs depend onUno.Toolkit.WinUI11.0.0-dev.140.- With Uno.Sdk 7.0.0-dev.81,
Uno.UI.Lottie.dllcame fromUno.WinUI.Lottie, which Uno.Themes 9.0.0-dev.44 and Uno.Toolkit 11.0.0-dev.143 depended on. - Since feat(drawing)!: Factory seams, Skottie in the Skia backend, Svg/Lottie docs uno#25117 (Skottie in the Skia backend), Lottie is part of Uno.WinUI. Uno.Themes 9.0.0-dev.56 (chore: Retarget to Uno 7.0.0-dev.2285 and drop the removed Lottie feature Uno.Themes#1760) and Uno.Toolkit 11.0.0-dev.155 (chore: Retarget to Uno 7.0.0-dev.2285 and Uno.Themes 9.0.0-dev.56 uno.toolkit.ui#1681), which Uno.Sdk 7.0.0-dev.89 pins, no longer depend on
Uno.WinUI.Lottie. So nothing putsUno.UI.Lottie.dllin the app any more. - Uno.Extensions was last rebuilt in chore: Rebuild against current Uno 7.0 Core (7.0.0-dev.2162) #3223, against Uno 7.0.0-dev.2162 and Toolkit 11.0.0-dev.140, so its compiled resources still reference the old assembly.
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)
- Install Uno.Templates 7.0.0-dev.89.
dotnet new unoapp -n QaApp -tfm net10.0 -preset recommended -presentation mvux -theme material --sample -platforms desktopdotnet build QaApp/QaApp.csproj -f net10.0-desktop. It succeeds, andbin/.../net10.0-desktop/has noUno.UI.Lottie.dll.- Run
QaApp.exe. The process starts but no window appears, even after 25 s. - 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
GlobalStaticResourcespulls in the Lottie type.
Activity
agneszitte commentedon Oct 28, 2026
@khaskoul can you retest this issue with latest Uno.Sdk 7.0.0-dev.97 version please
khaskoul commentedon Oct 29, 2026
I retested this on Uno.Sdk 7.0.0-dev.97. The
Uno.UI.Lottiereference is gone fromUno.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 missingUno.UI.Lottieassembly 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-devserverCLI 7.0.0-dev.2345net10.0-desktop(plus Chromium for the WebAssembly case)dotnet new unoapp -preset recommended -presentation mvux -theme material --sample -platforms desktop -tfm net10.0Static check
Uno.UI.Lottieis no longer referenced bylib/net10.0/Uno.Extensions.Navigation.Toolkit.UI.dll(packageUno.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 noUno.UI.Lottie.dllin its output.Runtime result on dev.97 (desktop, Material MVUX)
uno-devserver app start ... --connectionTimeoutSeconds 90: the app process starts, its RemoteControl client does not connect within 90 s, and the process keeps running.app info,app treeandapp screenshotfail with "No response received for RequestRuntimeInfo ... within 30s".FileNotFoundException: Could not load file or assembly 'Uno.UI.Lottie, Version=255.255.255.255'followed byTypeInitializationException: The type initializer for 'QaApp.GlobalStaticResources' threw an exception. TheAppconstructor throws, so the app never reaches the Dev Server.Control and bisect (desktop, same machine, same Dev Server)
-preset blankapp infoanswers-theme fluentapp infoanswers-theme material-theme material-theme materialSo 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
Uno.UI.App.Mcp.Client.GlobalStaticResources..cctor()called fromQaApp.GlobalStaticResources.Initialize().Uno.UI.App.Mcp.Client.dll(packageUno.UI.App.Mcp2.0.0-dev.18) has a type reference toUno.UI.Lottie.GlobalStaticResources, and theUno.UI.HotDesign.*.dllassemblies (packageUno.UI.HotDesign2.0.0-dev.31) have an assembly reference toUno.UI.Lottie255.255.255.255. Both were built against a Uno.UI that still had a separate Lottie assembly.Lottiefeature (Uno.Features.targets: "Lottie is built into Uno.WinUI") and the generated App code usesUno.UI.Lottie.LottieVisualSourceProviderfromUno.UI.dll.Uno.UI.Lottie.GlobalStaticResourcesdoes not exist there.Uno.UI.Lottie.dllstill reaches some apps only by accident, through packageUno.WinUI.Lottie7.0.0-dev.1574.Uno.UI.HotDesign2.0.0-dev.31 depends onUno.Themes.WinUI9.0.0-dev.41 andUno.Toolkit.WinUI11.0.0-dev.142, and those two depend onUno.WinUI.Lottie. The blank and Fluent apps resolve Themes 9.0.0-dev.41, so the old assembly is present and they start.Uno.Themes.WinUI9.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 onUno.WinUI.Lottie. Nothing suppliesUno.UI.Lottie.dll, so theUno.UI.App.Mcp.Clientstatic constructor throws.<PackageReference Include="Uno.WinUI.Lottie" VersionOverride="7.0.0-dev.1574" />to the failing dev.97 Material desktop app: it then connects andapp infoanswers. Copying the dll next to the output is not enough, it has to be indeps.json.Automated results (three runs of the same cases, Latest Dev Build 7.0.0-dev.97, passes out 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.Lottieassembly 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), becauseUno.UI.App.Mcp2.0.0-dev.18 andUno.UI.HotDesign2.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.chore(authentication): OIDC sample moves to Uno.Sdk 7.0.0-dev.115 and…
Xiaoy312 commentedon Oct 30, 2026
The fixes for the
Uno.UI.Lottiestartup crash have been merged:Uno.UI.App.Mcpis built against Uno 7.0.0-dev.2498, which has Lottie built intoUno.WinUI(published as 2.0.0-dev.19).Uno.UI.HotDesignis built against the same Uno version.Apps need both packages to start. The Uno.Sdk version that carries both fixes is still TBA.
MartinZikmund commentedon Nov 2, 2026
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.
khaskoul commentedon Nov 4, 2026
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-devserverCLI 7.0.0-dev.2345, Windows 11, .NET SDK 10.0.401). The apps connect and answerapp infoandapp tree; the WebAssembly console no longer shows theTypeInitializationException. NoUno.UI.Lottiereference is left inUno.Extensions.Navigation.Toolkit.UI.dll(checked on 8.0.0-dev.147) or in the two client packages. Nothing left from our side.fix(deps): build against Toolkit 11.0.0-dev.155 and Themes 9.0.0-dev.56
docs(specs): 020 progress for the Uno.UI.Lottie reference (unoplatfor…