Repository navigation
Description
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.Mvvmis only reaching apps transitively through HotDesign in Debug. Switching to Release makes it vanish, and code usingObservableObjectstops 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
MartinZikmund commentedon Oct 5, 2026
Re-checked with
Uno.Sdk7.0.0-dev.32 (Uno.WinUI 7.0.0-dev.1429),net10.0-desktop, Debug, noUnoFeatures. Still the same root cause, with a clearer picture of where the 6.x-built assemblies come from.Uno.UI.HotDesign1.24.0-dev.10 (newest on nuget.org is 1.24.0-dev.56). Its nuspec only hasnet9.0*dependency groups, depending onUno.WinUI6.8.0-dev.187,Uno.Themes.WinUI8.0.0-dev.16 andUno.Toolkit.WinUI10.0.0-dev.3. Anet10.0app picks thenet9.0group.project.assets.jsonresolvesUno.Themes.WinUI/8.0.0-dev.16,Uno.Toolkit.WinUI/10.0.0-dev.3andSkiaSharp.Views.Uno.WinUI/3.119.2, all built for Uno 6. The SDK'sThemesgroup (9.0.0-dev.29) does not listUno.Themes.WinUIitself, so nothing lifts the transitive version. WithUnoFeatures=Material;Toolkitthe Themes version is lifted to 9.0.0-dev.29 byUno.Material.WinUI, butSkiaSharp.Views.Uno.WinUIis not.CS0012from the description, withUNOB0023: The runtime-enabled package(s) [SkiaSharp.Views.Uno.WinUI] did not provide any runtime assembly for net10.0-desktop(fromuno.winui.runtime-replace.targets).Uno.UI.App.Mcp2.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 ofUno.Themes.WinUI/Uno.Toolkit.WinUIto 7.0-built versions. That does not fix the runtimeFileNotFoundExceptionfor the Hot Design assemblies themselves.Separately, the WinAppSDK head fails in Debug with MSB4057 for
_UnoAddLibraryAssetsfrom the same package's props; tracked in a separate issue.MartinZikmund commentedon Oct 9, 2026
Still reproduces on Uno.Sdk 7.0.0-dev.51 (Uno.WinUI 7.0.0-dev.1656). The SDK now pins
Uno.UI.HotDesign1.24.0-dev.107, which depends onSkiaSharp.Views.Uno.WinUI 3.119.2(Uno 6-era layout), so a Debugnet10.0-desktopbuild now fails at build time thanks to the new runtime-package check: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
Disable Hot Design and App MCP on Uno 7 heads
Xiaoy312 commentedon Oct 29, 2026
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 isolatednuget.config(nuget.org + Features + unoplatformdev). Each run checked:project.assets.json),AssemblyRefscan ofbin/for references that resolve neither to an output dll nor to the shared framework,bin/Uno.Sdk.Private7.0.0-dev.579CoreDispatcher→UnoSkiaSharp.Views.Uno.WinUI3.119.2UnoDisableBindableTypeProvidersGenerationUno← 15 dlls,Uno.UI.Toolkit← 17TypeInitializationException '<Module>'→FileNotFoundException 'Uno'Uno.Sdk7.0.0-dev.32SkiaSharp.Views.Uno.WinUIUno.Sdk7.0.0-dev.51Uno.Sdk7.0.0-dev.113SkiaSharp.Views.Uno.WinUIUno.Sdk.Private7.0.0-dev.2510The green runs are real, not HotDesign being dropped:
bin/, and its loggers run at startup. The only errors are DevServer connection failures, since the exe was launched without a DevServer.BindableMetadata.g.csis emitted and still mentionsCoreDispatcher, which now resolves throughUno.WinRT.Uno.UI.HotDesign2.0.0-dev.31 hasnet10.0*dependency groups onUno.WinUI7.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
Unoitself. 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 exposesCoreDispatcherfromUno. Republishing the packages fixed it.Still broken on latest: the Uno-flavoured CommunityToolkit.WinUI.
CommunityToolkit.WinUI.Controls.SettingsControls8.3.260402-preview2 (newest on nuget.org) still depends onUno.WinUI5.5.87. Repro: the dev.113 app above plus that package and aSettingsCardon the page.CoreDispatcher,RadialControllerMenuKnownIcon), from generated bindable code forCommunityToolkit.WinUI.AttachedShadowBase/SurfaceDialOptions.TypeInitializationException 'app.GlobalStaticResources'→FileNotFoundException 'Uno.UI.Toolkit'fromCommunityToolkit.WinUI.Controls.SettingsControlsRns.GlobalStaticResources.Initialize().Uno/Uno.UI.Toolkitunresolved inSettingsControls,Extensions,HelpersandTriggers.Uno.UI.Toolkitwas 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.Mvvm8.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.
Xiaoy312 commentedon Oct 29, 2026
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.Sdk7.0.0-dev.113 pins, where it differs). I then scanned theAssemblyRefs of every assembly in thelib/folder anet10.0-desktopapp uses.Fixed: Uno repos, latest packages built against
Uno.WinUI7.0Uno/Uno.UI.Toolkit?Uno.UI.HotDesign2.0.0-dev.31 / sameUno.UI.HotDesign,.Client,.Client.Core,.CommunityToolkit,.Hierarchy,.Previews,.PropertyGrid,.Toolbox,.Xaml.Interactions,.Xaml.InteractivityUno.WinRT.Uno.UI.HotDesign.Chat,Uno.AI.XamlGeneration.ContractsUno.UI.App.Mcp2.0.0-dev.18 / sameUno.UI.App.Mcp.ClientUno.WinRT)Uno.Themes.WinUI9.0.0-dev.61 / 9.0.0-dev.41Uno.Themes.WinUIUno.WinRT)Uno.Toolkit.WinUI11.0.0-dev.157 / 11.0.0-dev.142Uno.Toolkit.WinUIUno.WinRT)Still broken: outside the org, latest packages still built for Uno 5.x
Uno/Uno.UI.Toolkit?CommunityToolkit.WinUI.Extensions,.Helpers,.Triggers,.Controls.SettingsControls, all 8.3.260402-preview2 (Uno.WinUI5.5.87,lib/net9.0)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 againstUno.WinUI5.2.175, and itsSkiaSharp.Views.Windowsassembly references bothUnoandUno.UI.Toolkit. That doesn't affect new 7.0 apps:SkiaSharp.Views.Uno.WinUI.SKCanvasElementfromUno.WinUI.Graphics2DSK, which theskiafeature adds.A project migrating to 7.0 that references
SkiaSharp.Views.Uno.WinUIexplicitly only needs to remove that reference and switchSKXamlCanvasusages toSKCanvasElement.Xiaoy312 commentedon Oct 30, 2026
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?
Move the .NET 10 targets to the Uno 7 nightly