Skip to content

SkiaSharp.Views.Uno.WinUI cannot load on 7.0 (dangling Uno.UI.Toolkit / Uno references), yet the migration guide recommends it #24460

Open

Description

@MartinZikmund

Current behavior

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.WinUI 4.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

  1. Uno 7.0 app (Uno.Sdk.Private 7.0.0-dev.679), any Skia target.
  2. Add <PackageReference Include="SkiaSharp.Views.Uno.WinUI" Version="4.151.1" />.
  3. 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.Markup 6.7.0-dev.16, which the SDK's CSharpMarkup group still pins — see the separate issue.

Environment

Uno.Sdk.Private / Uno.WinUI 7.0.0-dev.679, SkiaSharp.Views.Uno.WinUI 4.151.1.

Activity

  1. self-assigned this
    on Oct 13, 2026
  2. added
    7.0
    on Oct 14, 2026
  3. removed
    7.0
    on Oct 29, 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