You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SkiaSharp.Views.Uno.WinUI cannot load on 7.0 (dangling Uno.UI.Toolkit / Uno references), yet the migration guide recommends it #24460
An Uno 7.0 app that references SkiaSharp.Views.Uno.WinUI compiles, then dies at startup:
System.IO.FileNotFoundException: Could not load file or assembly 'Uno.UI.Toolkit, Version=255.255.255.255'
at SkiaSharp.Views.Windows.GlobalStaticResources.Initialize()
at <YourApp>.GlobalStaticResources.Initialize()
Root cause
SkiaSharp.Views.Uno.WinUI4.151.1 — the version the SDK's SkiaSharp group pins — has assembly references to Uno.UI.Toolkit and Uno:
lib/net10.0/SkiaSharp.Views.Windows.dll
-> Uno.Foundation, Uno.UI.Toolkit, Uno.UI, Uno
7.0 renamed both (Uno.UI.Toolkit → Uno.UI.Extras, Uno → Uno.WinRT) and ships no type forwarders. uno.winui/7.0.0-dev.679/lib/net10.0 contains only Uno.UI.dll, Uno.UI.Composition.dll, Uno.UI.Extras.dll, Uno.UI.FluentTheme.dll and Uno.Xaml.dll. Because the package ships XAML, its generated GlobalStaticResources.Initialize() runs at app startup and resolves the missing assembly immediately.
(Uno.Foundation is fine — it still ships in its own package and arrives transitively via Uno.WinRT.)
Why this is worth an issue rather than just a rebuild
doc/articles/migrating-to-uno-7.md currently ends the relevant row with "otherwise add an explicit PackageReference" — the primary 7.0 migration guide actively recommends the action that breaks the app. doc/articles/features/svg.md and Lottie.md still list the package as a required install, and src/Uno.Sdk/packages.json still names it in the SkiaSharp group, which reads as "4.151.1 is the version 7.0 blesses".
That combination is what led me to reference it downstream in the first place.
Reproduction
Uno 7.0 app (Uno.Sdk.Private7.0.0-dev.679), any Skia target.
Build — succeeds. Run — FileNotFoundException before the first frame.
Observed on net10.0-desktop while porting Uno Toolkit to 7.0; the runtime-test host crashed before executing a single test.
Expected behavior
Either a build of SkiaSharp.Views.Uno.WinUI that targets 7.0, or documentation and SDK metadata that consistently steer users to SKCanvasElement.
Partial fix
PR #24458 fixes the docs and removes the dead manifest entry. It does not make the package usable — that needs a rebuild against 7.0, which is an upstream (mono/SkiaSharp) action.
Related
The same failure shape, different package: Uno.ShowMeTheXAML (fixed by unoplatform/ShowMeTheXAML#33) and Uno.WinUI.Markup6.7.0-dev.16, which the SDK's CSharpMarkup group still pins — see the separate issue.
Activity