Skip to content

7.0-dev: HotDesign, Toolkit and CommunityToolkit packages reference 'Uno'/'Uno.UI.Toolkit', which 7.0 no longer ships #24297

Open

Description

@MartinZikmund

What happened

On Uno.Sdk.Private 7.0.0-dev.579 a number of packages in the default graph are still built against Uno and Uno.UI.Toolkit — assemblies the 7.0 line no longer produces (they were split into Uno.Foundation / Uno.WinRT). The app builds, then fails at runtime:

FileNotFoundException: Could not load file or assembly 'Uno, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null'
TypeInitializationException: The type initializer for '<Module>' threw an exception.

FileNotFoundException: Could not load file or assembly 'Uno.UI.Toolkit, Version=255.255.255.255, ...'
TypeInitializationException: The type initializer for 'app.GlobalStaticResources' threw an exception.

Assemblies affected

Scanning AssemblyRef metadata of a Debug net10.0-desktop output, 19 shipped assemblies reference Uno:

Uno.UI.HotDesign.dll, Uno.UI.HotDesign.Client.dll, Uno.UI.HotDesign.Client.Core.dll,
Uno.UI.HotDesign.Chat.dll, Uno.UI.HotDesign.CommunityToolkit.dll, Uno.UI.HotDesign.Hierarchy.dll,
Uno.UI.HotDesign.Previews.dll, Uno.UI.HotDesign.PropertyGrid.dll, Uno.UI.HotDesign.Toolbox.dll,
Uno.UI.HotDesign.Xaml.Interactions.dll, Uno.UI.HotDesign.Xaml.Interactivity.dll,
Uno.Themes.WinUI.dll, Uno.Toolkit.WinUI.dll, Uno.UI.App.Mcp.Client.dll,
Uno.AI.XamlGeneration.Contracts.dll, SkiaSharp.Views.Windows.dll,
CommunityToolkit.WinUI.Extensions.dll, CommunityToolkit.WinUI.Helpers.dll,
CommunityToolkit.WinUI.Triggers.dll

CommunityToolkit.WinUI.Controls.SettingsControls additionally references Uno.UI.Toolkit.

Impact

  • Debug is unrunnable out of the box, because HotDesign is referenced by default and fails its module initializer before any UI appears.
  • Release avoids HotDesign, but any app using the Uno-flavoured CommunityToolkit still fails the same way.
  • A side effect: CommunityToolkit.Mvvm is only reaching apps transitively through HotDesign in Debug. Switching to Release makes it vanish, and code using ObservableObject stops compiling — which is confusing, since nothing about the app changed.

Repro

dotnet new unoapp -platforms desktop, point global.json at Uno.Sdk.Private 7.0.0-dev.579 from the Features feed, build and run Debug.

The related compile-time symptom is also reproducible in that vanilla app:

BindableMetadata.g.cs(838,176): error CS0012: The type 'CoreDispatcher' is defined in an assembly that is not
referenced. You must add a reference to assembly 'Uno, Version=255.255.255.255, ...'

CoreDispatcher now lives in Uno.WinRT, but BindableTypeProvidersSourceGenerator still emits a reference to Uno. Worked around with UnoDisableBindableTypeProvidersGeneration=true.

Expected

Rebuild/republish the dev-time and toolkit packages against the 7.0 assembly layout, and update the bindable-type generator to reference Uno.WinRT.

Notes

Found while porting microsoft/calculator to Uno 7. These were the first runtime blockers after the app compiled cleanly — the app launched, created its window, and rendered nothing.

Activity

  1. MartinZikmund commented on Oct 5, 2026

    @MartinZikmund
    MemberAuthor

    Re-checked with Uno.Sdk 7.0.0-dev.32 (Uno.WinUI 7.0.0-dev.1429), net10.0-desktop, Debug, no UnoFeatures. Still the same root cause, with a clearer picture of where the 6.x-built assemblies come from.

    • The SDK pins Uno.UI.HotDesign 1.24.0-dev.10 (newest on nuget.org is 1.24.0-dev.56). Its nuspec only has net9.0* dependency groups, depending on Uno.WinUI 6.8.0-dev.187, Uno.Themes.WinUI 8.0.0-dev.16 and Uno.Toolkit.WinUI 10.0.0-dev.3. A net10.0 app picks the net9.0 group.
    • So in a bare Debug app project.assets.json resolves Uno.Themes.WinUI/8.0.0-dev.16, Uno.Toolkit.WinUI/10.0.0-dev.3 and SkiaSharp.Views.Uno.WinUI/3.119.2, all built for Uno 6. The SDK's Themes group (9.0.0-dev.29) does not list Uno.Themes.WinUI itself, so nothing lifts the transitive version. With UnoFeatures=Material;Toolkit the Themes version is lifted to 9.0.0-dev.29 by Uno.Material.WinUI, but SkiaSharp.Views.Uno.WinUI is not.
    • The build now stops earlier than the CS0012 from the description, with UNOB0023: The runtime-enabled package(s) [SkiaSharp.Views.Uno.WinUI] did not provide any runtime assembly for net10.0-desktop (from uno.winui.runtime-replace.targets).
    • Uno.UI.App.Mcp 2.0.0-dev.5 is the newest published version as of 2026-10-05.

    Workaround that gets past the build: <UnoDisableHotDesign>true</UnoDisableHotDesign> (and <UnoDisableMCPSupport>true</UnoDisableMCPSupport>) in Debug, or a central pin of Uno.Themes.WinUI / Uno.Toolkit.WinUI to 7.0-built versions. That does not fix the runtime FileNotFoundException for the Hot Design assemblies themselves.

    Separately, the WinAppSDK head fails in Debug with MSB4057 for _UnoAddLibraryAssets from the same package's props; tracked in a separate issue.

  2. MartinZikmund commented on Oct 9, 2026

    @MartinZikmund
    MemberAuthor

    Still reproduces on Uno.Sdk 7.0.0-dev.51 (Uno.WinUI 7.0.0-dev.1656). The SDK now pins Uno.UI.HotDesign 1.24.0-dev.107, which depends on SkiaSharp.Views.Uno.WinUI 3.119.2 (Uno 6-era layout), so a Debug net10.0-desktop build now fails at build time thanks to the new runtime-package check:

    uno.winui.runtime-replace.targets(126,3): error UNOB0023: The runtime-enabled package(s) [SkiaSharp.Views.Uno.WinUI] did not provide any runtime assembly for net10.0-desktop.
    

    project.assets.json: Uno.UI.HotDesign/1.24.0-dev.107 -> SkiaSharp.Views.Uno.WinUI 3.119.2, Uno.WinUI.Lottie 6.8.0-dev.187.

    Hit while moving the CommunityToolkit gallery (Uno.Sdk single-project head) to Uno 7. Workaround: <UnoDisableHotDesign>true</UnoDisableHotDesign> + <UnoDisableMCPSupport>true</UnoDisableMCPSupport>.

    🤖 Generated with Claude Code

  3. added
    7.0
    on Oct 14, 2026
  4. removed
    7.0
    on Oct 29, 2026
  5. self-assigned this
    on Oct 29, 2026
  6. Xiaoy312 commented on Oct 29, 2026

    @Xiaoy312
    Contributor

    Re-validated with red/green runs on 2026-10-29. Setup: the repro from the description (dotnet new unoapp -platforms desktop, Debug, net10.0-desktop), one copy per SDK with only the SDK version changed, and an isolated nuget.config (nuget.org + Features + unoplatformdev). Each run checked:

    • the build,
    • the resolved graph (project.assets.json),
    • an AssemblyRef scan of bin/ for references that resolve neither to an output dll nor to the shared framework,
    • a 30 s launch of the exe.
    SDK Build HotDesign / Themes / Toolkit Unresolved refs in bin/ Run
    Uno.Sdk.Private 7.0.0-dev.579 ❌ 12× CS0012 CoreDispatcher → Uno 1.20.0-dev.750 / 7.0.0-dev.36 / 9.0.0-dev.9, + SkiaSharp.Views.Uno.WinUI 3.119.2 🔴
    same + UnoDisableBindableTypeProvidersGeneration ✅ same Uno ← 15 dlls, Uno.UI.Toolkit ← 17 TypeInitializationException '<Module>' → FileNotFoundException 'Uno' 🔴
    Uno.Sdk 7.0.0-dev.32 ❌ UNOB0023 SkiaSharp.Views.Uno.WinUI 1.24.0-dev.10 / 8.0.0-dev.16 / 10.0.0-dev.3 🔴
    Uno.Sdk 7.0.0-dev.51 ❌ UNOB0023 1.24.0-dev.107 / 8.0.0-dev.16 / 10.0.0-dev.3 🔴
    Uno.Sdk 7.0.0-dev.113 ✅ (clean build) 2.0.0-dev.31 / 9.0.0-dev.41 / 11.0.0-dev.142, no SkiaSharp.Views.Uno.WinUI none (82 dlls) window up, no load errors 🟢
    Uno.Sdk.Private 7.0.0-dev.2510 ✅ 2.0.0-dev.2 / 9.0.0-dev.37 / 11.0.0-dev.137 none window up, no load errors 🟢

    The green runs are real, not HotDesign being dropped:

    • HotDesign 2.0 is in the graph and in bin/, and its loggers run at startup. The only errors are DevServer connection failures, since the exe was launched without a DevServer.
    • The bindable-type generator ran: BindableMetadata.g.cs is emitted and still mentions CoreDispatcher, which now resolves through Uno.WinRT.

    Uno.UI.HotDesign 2.0.0-dev.31 has net10.0* dependency groups on Uno.WinUI 7.0.0-dev.2285, Themes 9.x and Toolkit 11.x.

    The bindable-type generator doesn't need a change. The CS0012 isn't the generator emitting a reference to Uno itself. On dev.579 the failing generated line is ((global::Uno.Themes.ThemeColors)instance).Dispatcher: the generator writes code against a type from a package built for Uno 6, and that type exposes CoreDispatcher from Uno. Republishing the packages fixed it.

    Still broken on latest: the Uno-flavoured CommunityToolkit.WinUI. CommunityToolkit.WinUI.Controls.SettingsControls 8.3.260402-preview2 (newest on nuget.org) still depends on Uno.WinUI 5.5.87. Repro: the dev.113 app above plus that package and a SettingsCard on the page.

    • Build (Debug and Release): 8× CS0012 (CoreDispatcher, RadialControllerMenuKnownIcon), from generated bindable code for CommunityToolkit.WinUI.AttachedShadowBase / SurfaceDialOptions.
    • Run, with bindable generation turned off: TypeInitializationException 'app.GlobalStaticResources' → FileNotFoundException 'Uno.UI.Toolkit' from CommunityToolkit.WinUI.Controls.SettingsControlsRns.GlobalStaticResources.Initialize().
    • Reference scan: Uno / Uno.UI.Toolkit unresolved in SettingsControls, Extensions, Helpers and Triggers.

    Uno.UI.Toolkit was renamed and moved in 7.0, not republished, so the fix is on the WCT side: a CommunityToolkit.WinUI release built against Uno 7.

    Unchanged: HotDesign 2.0 still depends on CommunityToolkit.Mvvm 8.4.2, so that package still reaches apps only through HotDesign, in Debug only.

    Suggest narrowing this issue to the CommunityToolkit part, or closing it and tracking that separately.

  7. Xiaoy312 commented on Oct 29, 2026

    @Xiaoy312
    Contributor

    These are the assemblies listed under "Assemblies affected", grouped by the repo that ships them. For each package I took the latest version on nuget.org (and the version Uno.Sdk 7.0.0-dev.113 pins, where it differs). I then scanned the AssemblyRefs of every assembly in the lib/ folder a net10.0-desktop app uses.

    Fixed: Uno repos, latest packages built against Uno.WinUI 7.0

    Repo Package (latest / SDK pin) Assemblies Latest refs Uno / Uno.UI.Toolkit?
    unoplatform/uno.hotdesign Uno.UI.HotDesign 2.0.0-dev.31 / same Uno.UI.HotDesign, .Client, .Client.Core, .CommunityToolkit, .Hierarchy, .Previews, .PropertyGrid, .Toolbox, .Xaml.Interactions, .Xaml.Interactivity ✅ No. They reference Uno.WinRT.
    Uno.UI.HotDesign.Chat, Uno.AI.XamlGeneration.Contracts ✅ No longer in the package
    unoplatform/uno.app-mcp Uno.UI.App.Mcp 2.0.0-dev.18 / same Uno.UI.App.Mcp.Client ✅ No (Uno.WinRT)
    unoplatform/Uno.Themes Uno.Themes.WinUI 9.0.0-dev.61 / 9.0.0-dev.41 Uno.Themes.WinUI ✅ No (Uno.WinRT)
    unoplatform/uno.toolkit.ui Uno.Toolkit.WinUI 11.0.0-dev.157 / 11.0.0-dev.142 Uno.Toolkit.WinUI ✅ No (Uno.WinRT)

    Still broken: outside the org, latest packages still built for Uno 5.x

    Repo Package (latest) Assemblies Latest refs Uno / Uno.UI.Toolkit?
    CommunityToolkit/Windows (WCT) CommunityToolkit.WinUI.Extensions, .Helpers, .Triggers, .Controls.SettingsControls, all 8.3.260402-preview2 (Uno.WinUI 5.5.87, lib/net9.0) all four ❌ Yes, both

    Not a problem for 7.0 apps: mono/SkiaSharp

    The latest SkiaSharp.Views.Uno.WinUI (4.156.0-preview.1.26512.10) is still built against Uno.WinUI 5.2.175, and its SkiaSharp.Views.Windows assembly references both Uno and Uno.UI.Toolkit. That doesn't affect new 7.0 apps:

    • Neither the templates nor the SDK add SkiaSharp.Views.Uno.WinUI.
    • HotDesign 2.0 dropped its dependency on it, which is why UNOB0023 is gone on 7.0.0-dev.113.
    • On Skia, 7.0 apps draw with SKCanvasElement from Uno.WinUI.Graphics2DSK, which the skia feature adds.

    A project migrating to 7.0 that references SkiaSharp.Views.Uno.WinUI explicitly only needs to remove that reference and switch SKXamlCanvas usages to SKCanvasElement.

  8. Xiaoy312 commented on Oct 30, 2026

    @Xiaoy312
    Contributor

    WCT: blocked behind https://github.com/unoplatform/uno-private/issues/2068 @ajpinedam
    Skia: "there should be a new RC version for skiasharp views that doesn't reference uno.toolkit.ui" @ramezgerges

    if there is any progress, could you also notify here?

  9. removed their assignment
    on Nov 2, 2026
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

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions