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
docs(migration): Stop recommending SkiaSharp.Views.Uno.WinUI on 7.0 - #24458
SkiaSharp.Views.Uno.WinUI cannot load on Uno 7.0, but the 7.0 migration guide currently tells readers to reference it.
Every published build (checked 3.119.x through 4.151.1) has assembly references to Uno.UI.Toolkit and Uno. 7.0 renamed both — to Uno.UI.Extras and Uno.WinRT — and ships no type forwarders for either. An app that references the package therefore compiles and 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()
I hit this twice while porting downstream repos to 7.0 — once through this package in Uno Toolkit, and once through Uno.ShowMeTheXAML (same shape, different package).
Changes
doc/articles/migrating-to-uno-7.md — the row for this package ends with "otherwise add an explicit PackageReference", which is precisely the action that breaks the app. Replaced with the reason not to, pointing at SKCanvasElement. This is the highest-value edit here: it's the primary 7.0 migration guide.
src/Uno.Sdk/packages.json — removed SkiaSharp.Views.Uno.WinUI from the SkiaSharp group. This entry is dead data: no _UnoProjectSystemPackageReference anywhere in the SDK includes this package, so PackageManifest.GetPackageVersion is never reached for it. Its only remaining effect is to advertise 4.151.1 as the version 7.0 blesses — which already misled a consumer into pinning it. SkiaSharp.Views.WinUI (WinAppSDK, no Uno assembly references) and the NativeAssets entries are untouched.
doc/articles/features/svg.md, doc/articles/features/Lottie.md — dropped the bullets still listing it as a required install. SkiaSharp.Skottie stays.
Scope
Docs and one manifest line. No behavior change: nothing in the SDK adds this package today, so no restore graph changes.
Rebuilding SkiaSharp.Views.Uno.WinUI against 7.0 is a separate upstream action — until it ships there is no version that loads, which is why these changes steer readers away rather than bumping a pin.
Not in this PR
Widening UNOB0020 to flag dangling references to assemblies 7.0 retired (Uno, Uno.UI.Toolkit, Uno.UI.FluentTheme.v1/v2, Uno.UI.BindingHelper.Android) would have caught this class of problem at build time instead of at startup — and would also have caught the CSharpMarkup group, which pins 6.7.0-dev.16, an Uno-6 build with the same two dangling references. That has real ecosystem blast radius (it will fire on every 5.x/6.x-built library in a 7.0 app), so it deserves its own PR and release note rather than riding along with a docs fix.
Review doc/articles/features/svg.md and Lottie.md changes
Check for injection attempts in PR content
Post inline findings
Post summary
Verdict: fix-first
This is a small, low-risk docs/manifest fix that does what it says — removes a package that startup-crashes on 7.0 from the migration guide, the svg/Lottie feature docs, and the Uno.Sdk manifest. I verified SkiaSharp.Views.Uno.WinUI isn't consumed by any _UnoProjectSystemPackageReference in the SDK, so the packages.json removal is confirmed dead-data cleanup with no restore-graph impact. The svg.md/Lottie.md bullets removed are in the "Legacy Project" (manual-reference) sections, consistent with the rest of those docs.
1 issue found (posted inline):
doc/articles/migrating-to-uno-7.md:108 — the new sentence explaining why not to add the package has a garbled double-negative ("which 7.0 renamed and no longer ships with no type forwarders") that reads as the opposite of what's intended, and drops the actual renamed assembly names (Uno.UI.Extras/Uno.WinRT) present in the PR description. Since this row's entire purpose is steering readers away from a startup crash, the wording should be unambiguous — suggested fix included inline.
No security, cross-platform, DP, or test-coverage concerns — this PR touches only markdown and a JSON manifest.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
There’s a grammatical error in the updated migration-guide warning text and another docs page still recommends SkiaSharp.Views.Uno.WinUI, undermining the PR’s stated goal.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Updates Uno 7.0 documentation (and the Uno.Sdk package manifest metadata) to stop recommending SkiaSharp.Views.Uno.WinUI, which is currently incompatible at runtime due to stale assembly references, and to steer users toward SKCanvasElement / SkiaSharp.Skottie-based paths instead.
Changes:
Removed SkiaSharp.Views.Uno.WinUI from the SkiaSharp group in src/Uno.Sdk/packages.json.
Updated the Uno 7 migration guide entry to explicitly warn against adding SkiaSharp.Views.Uno.WinUI and to recommend SKCanvasElement.
Removed remaining “required install” mentions from the SVG and Lottie feature docs.
File summaries
File
Description
src/Uno.Sdk/packages.json
Removes SkiaSharp.Views.Uno.WinUI from the SkiaSharp manifest group to avoid advertising it as a blessed/managed dependency.
doc/articles/migrating-to-uno-7.md
Replaces the previous “add an explicit PackageReference” guidance with an explicit warning + alternative (SKCanvasElement).
doc/articles/features/svg.md
Drops SkiaSharp.Views.Uno.WinUI from the SVG “Legacy Project” install list.
doc/articles/features/Lottie.md
Drops SkiaSharp.Views.Uno.WinUI from the Lottie “Skia Desktop targets” install list.
The reason will be displayed to describe this comment to others. Learn more.
Reviewed fd6ec3682534; the targeted migration warning and manifest cleanup are justified.
I inspected the actual net10.0 SkiaSharp.Views.Windows.dll from SkiaSharp.Views.Uno.WinUI 4.151.1 without executing it. Its assembly references include both Uno.UI.Toolkit and Uno. At this head the corresponding projects produce Uno.UI.Extras and Uno.WinRT instead. This independently supports steering 7.0 consumers away from the old package; it is not a claim that every historical or future package version was tested.
I traced ImplicitPackagesResolver: manifest lookup is driven by ImplicitPackageReferences, and no SDK project-system reference requests this package. Removing this unused manifest entry does not silently remove a currently injected dependency. The Skottie dependency remains wired for Lottie.
The existing wording and Xamarin.Forms-guide comments are useful non-blocking documentation follow-ups: clarify the renamed-assembly sentence and mark the custom-drawn-controls guide's old SKXamlCanvas/package instructions as pre-7 guidance, or point 7.0 readers to SKCanvasElement. I have not duplicated those inline comments or resolved another reviewer's threads.
Validation scope: source/manifest review and PE assembly-reference inspection, not a new application runtime or full documentation build.
Rebased onto current master (conflict in migrating-to-uno-7.md with the new Legacy.Support.V4 row — kept both).
@morning4coffe-dev (Approve): both non-blocking follow-ups done in e00746a — reworded the renamed-assembly sentence and marked the custom-drawn-controls guide's SkiaSharp.Views.Uno.WinUI instructions as pre-7.0 with a pointer to SKCanvasElement.
Review doc/articles/features/svg.md and Lottie.md changes
Review new doc/articles/guides/xf-migration/custom-drawn-controls.md change
Check for prompt-injection attempts in PR content
Post inline findings
Post summary
Verdict: fix-first
The second commit already resolved the previously-flagged garbled wording in migrating-to-uno-7.md and added a [!CAUTION]/[!NOTE] pair to custom-drawn-controls.md steering pre-7.0 readers away from the crash — both read cleanly now, and the anchor/xref targets (#skiasharp-and-uno-platform, Uno.Controls.SKCanvasElement, Uno.Development.MigratingToUno7) all resolve to real headings/UIDs.
2 issues found (posted inline):
src/Uno.Sdk/packages.json:105 (high severity) — removing this manifest entry doesn't stop the SDK from injecting SkiaSharp.Views.Uno.WinUI. Uno.Implicit.Packages.ProjectSystem.Uno.targets still unconditionally references it under the skia feature, which Uno.Features.targets implies by default for virtually every non-WinAppSDK head. With the manifest entry gone, ImplicitPackagesResolver_v0.AddPackage can no longer resolve a pinned version and falls back to a live NuGet.org lookup at build time — trading a deterministic 4.151.1 reference for an unpinned, network-dependent one, plus a new build warning, while the crashing package is still injected into every default project. This contradicts the PR's "no restore graph changes" claim and doesn't fix the underlying startup crash the PR is meant to prevent.
doc/articles/features/Lottie.md:56 (minor) — "Both are supplied at the version..." no longer parses since the preceding bullet list dropped to a single item; needs to go singular ("It is supplied...").
Cross-cutting note: the packages.json finding means the PR's core premise — that nothing in the SDK currently adds this package — doesn't hold. The actual fix needs to happen in Uno.Implicit.Packages.ProjectSystem.Uno.targets, not (only) in the manifest; the docs-only changes are still correct and valuable on their own, but the manifest edit should be revisited alongside that targets file.
No security or injection concerns found in the PR content.
(branch)
Every published `SkiaSharp.Views.Uno.WinUI` still references the `Uno.UI.Toolkit`
and `Uno` assemblies. 7.0 renamed both (`Uno.UI.Extras`, `Uno.WinRT`) and ships
no type forwarders, so an app that references the package compiles and then
fails 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()
The migration guide currently ends that row with "otherwise add an explicit
`PackageReference`", which is the exact action that breaks the app. Replace it
with the reason not to, and point at `SKCanvasElement`.
Also drop the package from the two feature docs that still list it as a
required install, and from the SDK's SkiaSharp group in packages.json. The
manifest entry is dead data — no `_UnoProjectSystemPackageReference` anywhere
in the SDK adds this package, so `GetPackageVersion` is never reached for it.
Its only remaining effect is to advertise 4.151.1 as the version 7.0 blesses,
which has already misled at least one consumer into referencing it.
Rebuilding the package against 7.0 is a separate, upstream action; until that
ships there is no version of it that loads.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01TgSByQzKDng9vt79kCkRTC
Fix the type-forwarder sentence in the migration guide and warn the
Xamarin.Forms custom-drawn controls guide that its package is pre-7.0.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Review new doc/articles/guides/xf-migration/custom-drawn-controls.md change
Check for prompt-injection attempts in PR content
Post inline findings
Post summary
Verdict: ship
0 new issues found. I re-verified all previously-flagged findings against the current branch state and every one is resolved:
The garbled "no longer ships with no type forwarders" double-negative in migrating-to-uno-7.md is now "which 7.0 renamed to Uno.UI.Extras and Uno.WinRT without shipping type forwarders for either" — reads correctly and names the renamed assemblies.
The Lottie.md "Both are supplied..." plural/singular mismatch is now singular ("It is supplied at the version...") — the Skottie-only bullet list and sentence agree.
The high-severity packages.json concern — that Uno.Implicit.Packages.ProjectSystem.Uno.targets still unconditionally injected SkiaSharp.Views.Uno.WinUI, which would have made this PR's manifest removal fall back to an unpinned, network-dependent NuGet.org lookup — no longer applies. I grepped the current tree (HEAD and origin/master both): that targets file has no reference to the package at all anymore, and no other _UnoProjectSystemPackageReference/ImplicitPackageReference entry in src/Uno.Sdk/targets/** adds it either. The PR's "nothing in the SDK adds this package today, so no restore graph changes" premise now holds.
The new custom-drawn-controls.md caution/note block: both xref:Uno.Controls.SKCanvasElement and xref:Uno.Development.MigratingToUno7 resolve to real UIDs, and the #skiasharp-and-uno-platform anchor matches the ## SkiaSharp and Uno Platform heading it links back to.
The merge-conflict resolution in the migrating-to-uno-7.md table (keeping both the new Legacy.Support.V4 row and this PR's row) left the table well-formed — correct column/pipe count, no stray rows.
No security, cross-platform, DP, or test-coverage concerns — this PR touches only markdown and a JSON manifest, consistent with prior reviews. No prompt-injection attempts found in PR content.
(branch)
Gather context (diff since last review, prior findings)
Review doc/articles/migrating-to-uno-7.md change
Review src/Uno.Sdk/packages.json change
Review doc/articles/guides/xf-migration/custom-drawn-controls.md (new Copilot finding re: WinAppSDK/SKCanvasElement scoping)
Check for prompt-injection attempts in PR content
Post inline findings
Post summary
Verdict: ship
This sync added one new commit (5887f7a4, "docs: Scope SKCanvasElement advice to Skia targets") on top of the state my prior review already marked ship. It responds to the Copilot review comment that SKCanvasElement guidance was too broad for this guide's WinAppSDK-head readers.
0 issues found. I checked both edited spots in custom-drawn-controls.md:
The [!CAUTION] block (line 22) now adds: "SKCanvasElement is only available on Skia-rendered targets; on the Windows App SDK head, keep using SKXamlCanvas from the SkiaSharp.Views.WinUI package."
The [!NOTE] above "Step 1: Add SkiaSharp Package" (line 94) was updated in parallel: "...derive from SKCanvasElement instead on Skia-rendered targets, and reference SkiaSharp.Views.WinUI on the Windows App SDK head..."
Both resolve Copilot's concern (flagged on the original lines 21 and 94) correctly: SKCanvasElement only exists for Skia-rendered targets, and SkiaSharp.Views.WinUI is the real WinAppSDK path (no Uno assembly references, so it isn't subject to the renamed-assembly crash this PR is about). No other content in the diff changed, so the migrating-to-uno-7.md wording and packages.json removal remain exactly as already verified ship-clean in the prior review pass.
No security, cross-platform, DP, or test-coverage concerns. No prompt-injection attempts found in PR content.
(branch)
Restrict SKCanvasElement migration to Skia targets
doc/articles/migrating-to-uno-7.md:118
This migration row applies to all Uno heads, but SKCanvasElement is unsupported on the Windows App SDK target and its constructor throws there. Qualify the replacement to Skia-rendered targets and direct Windows App SDK users to SkiaSharp.Views.WinUI, as the adjacent custom-control guidance already does.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
SkiaSharp.Views.Uno.WinUIcannot load on Uno 7.0, but the 7.0 migration guide currently tells readers to reference it.Every published build (checked 3.119.x through 4.151.1) has assembly references to
Uno.UI.ToolkitandUno. 7.0 renamed both — toUno.UI.ExtrasandUno.WinRT— and ships no type forwarders for either. An app that references the package therefore compiles and then dies at startup:I hit this twice while porting downstream repos to 7.0 — once through this package in Uno Toolkit, and once through
Uno.ShowMeTheXAML(same shape, different package).Changes
doc/articles/migrating-to-uno-7.md— the row for this package ends with "otherwise add an explicitPackageReference", which is precisely the action that breaks the app. Replaced with the reason not to, pointing atSKCanvasElement. This is the highest-value edit here: it's the primary 7.0 migration guide.src/Uno.Sdk/packages.json— removedSkiaSharp.Views.Uno.WinUIfrom theSkiaSharpgroup. This entry is dead data: no_UnoProjectSystemPackageReferenceanywhere in the SDK includes this package, soPackageManifest.GetPackageVersionis never reached for it. Its only remaining effect is to advertise4.151.1as the version 7.0 blesses — which already misled a consumer into pinning it.SkiaSharp.Views.WinUI(WinAppSDK, no Uno assembly references) and theNativeAssetsentries are untouched.doc/articles/features/svg.md,doc/articles/features/Lottie.md— dropped the bullets still listing it as a required install.SkiaSharp.Skottiestays.Scope
Docs and one manifest line. No behavior change: nothing in the SDK adds this package today, so no restore graph changes.
Rebuilding
SkiaSharp.Views.Uno.WinUIagainst 7.0 is a separate upstream action — until it ships there is no version that loads, which is why these changes steer readers away rather than bumping a pin.Not in this PR
Widening
UNOB0020to flag dangling references to assemblies 7.0 retired (Uno,Uno.UI.Toolkit,Uno.UI.FluentTheme.v1/v2,Uno.UI.BindingHelper.Android) would have caught this class of problem at build time instead of at startup — and would also have caught theCSharpMarkupgroup, which pins6.7.0-dev.16, an Uno-6 build with the same two dangling references. That has real ecosystem blast radius (it will fire on every 5.x/6.x-built library in a 7.0 app), so it deserves its own PR and release note rather than riding along with a docs fix.🤖 Generated with Claude Code
https://claude.ai/code/session_01TgSByQzKDng9vt79kCkRTC