Skip to content

build!: Remove redundant Skia bootstrapper metas (BC07) - #23712

Merged
MartinZikmund merged 2 commits into
feature/breakingchangesfrom
dev/xygu/20260708/bc07-remove-skia-bootstrapper-metas
Jul 16, 2026
Merged

MartinZikmund merged 2 commits into
feature/breakingchangesfrom
dev/xygu/20260708/bc07-remove-skia-bootstrapper-metas

Conversation

@Xiaoy312

@Xiaoy312 Xiaoy312 commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

GitHub Issue: unoplatform/uno-private#2125

PR Type:

🏗️ Build or CI related changes — breaking change (removes published NuGet packages), part of the Uno 7.0 breaking-changes epic.

What changed? 🚀

Removes the three redundant Skia "bootstrapper" meta-packages (BC07) — Uno.WinUI.Skia.X11, Uno.WinUI.Skia.MacOS, and Uno.WinUI.Skia.Linux.FrameBuffer. Each shipped no code (empty lib/netstandard1.0/_._ + uno.png) and only redirected to Uno.WinUI plus the real, code-bearing Uno.WinUI.Runtime.Skia.<variant> head. In 7.0 the runtime head is the supported reference — injected implicitly by Uno.Sdk for executable heads — so the metas are redundant. (Uno.WinUI.Runtime.Skia.Win32, the newest desktop head, never had a bootstrapper meta.)

  • Deletes the three nuspecs under build/nuget/.
  • De-wires them from the pack pipeline in build/Uno.UI.Build.csproj — the _NuspecFiles entries, the nuget pack steps, and the FrameBuffer _diffPackage entry. The Uno.WinUI.Runtime.Skia.* diff entries and the ValidateNoNativeUIHeadPackages guard are left untouched (that guard is for native UI heads, not Skia bootstrappers).
  • Repoints the two internal Linux.FrameBuffer validation heads (UnoAppWinUI.Skia.Linux.FrameBuffer, UnoAppWinUILinuxValidation.Skia.Linux.FrameBuffer) from the meta to Uno.WinUI.Runtime.Skia.Linux.FrameBuffer. Unlike the earlier Uno.WinUI.WebAssembly meta removal, the Skia targets stay, so these heads are repointed rather than deleted; Uno.WinUI still flows in via their ProjectReference to the parent app.
  • Documents the migration in doc/articles/migrating-to-uno-7.md and marks BC07 done in specs/050-breaking-changes-rollup/spec.md.

No in-repo breakage: Uno.WinUI.Skia.X11 and .MacOS had zero consumers in the repo; the only consumers of the FrameBuffer meta were the two internal validation heads (repointed above). No dotnet new end-user template referenced any of the three.

Validation (static): a functional-reference grep confirms no remaining PackageReference / _NuspecFiles / _diffPackage / nuget pack reference to the bare meta ids, and the diff mirrors the earlier Uno.WinUI.WebAssembly meta removal in shape (nuspecs deleted; the three wiring spots de-wired). This is Release-only pack-pipeline infrastructure that a normal solution build does not exercise — the CI Release pack is the authoritative gate: it builds the packages, runs ValidatePackage, and restores/builds the two repointed FrameBuffer heads against the freshly built runtime head (also confirming no XmlPoke error now that no remaining nuspec carries those deps).

PR Checklist ✅

  • 🧪 Added Runtime tests, UI tests, or a manual test sample (for bug fixes / features, if applicable) — N/A, build/packaging-only change with no runtime surface.
  • 📚 Docs have been added/updated following the documentation template (for bug fixes / features) — migration note added to doc/articles/migrating-to-uno-7.md.
  • 🖼️ Validated PR Screenshots Compare Test Run results.
  • ❗ Contains NO breaking changes
  • 👀 Reviewed 2 other open pull requests (optional but appreciated!)

Breaking change — impact & migration path

Impact: The three packages stop being published. An app that carries an explicit <PackageReference Include="Uno.WinUI.Skia.{X11,MacOS,Linux.FrameBuffer}" /> will hit a hard NuGet restore failure (unable to find package) once 7.0 ships. Unlike the WebAssembly meta, there is no softening build diagnostic — UNOB0017 is WebAssembly-specific.

Migration:

  • Uno.Sdk apps (common case): remove the explicit reference — the matching Uno.WinUI.Runtime.Skia.* head is referenced implicitly for executable heads; there is nothing to add.
  • Hand-rolled / non-Uno.Sdk heads: replace it with the corresponding Uno.WinUI.Runtime.Skia.<variant> package.

🤖 Generated with Claude Code

@github-actions github-actions Bot added area/solution-templates Categorizes an issue or PR as relevant to the solution template area/build Categorizes an issue or PR as relevant to build infrastructure kind/documentation labels Jul 9, 2026
@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 221615 has failed on Uno.UI - CI.

@Xiaoy312
Xiaoy312 marked this pull request as ready for review July 10, 2026 15:42
@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 221738 has failed on Uno.UI - CI.

@Xiaoy312
Xiaoy312 force-pushed the dev/xygu/20260708/bc07-remove-skia-bootstrapper-metas branch from 9f59ff8 to 8cb8e1e Compare July 14, 2026 14:48
@unodevops

Copy link
Copy Markdown
Contributor

Xiaoy312 and others added 2 commits July 15, 2026 13:17
The three Uno.WinUI.Skia.{X11,MacOS,Linux.FrameBuffer} packages are
empty meta-packages that ship no code and only redirect to Uno.WinUI
plus the real Uno.WinUI.Runtime.Skia.<variant> head. In 7.0 the runtime
head is the supported reference (injected implicitly by Uno.Sdk for
executable heads), so the metas are redundant.

Delete their nuspecs and de-wire them from the pack pipeline
(_NuspecFiles, the pack steps, and the FrameBuffer package diff). Unlike
the WebAssembly meta removal, the Skia targets stay, so the two internal
Linux.FrameBuffer validation heads are repointed to
Uno.WinUI.Runtime.Skia.Linux.FrameBuffer rather than deleted.

Migration: remove an explicit Uno.WinUI.Skia.* reference (the matching
runtime head is implicit under Uno.Sdk), or for a hand-rolled head
replace it with Uno.WinUI.Runtime.Skia.<variant>.

Part of #2125 (Phase 3 breaking changes).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Four XmlPoke version-substitution steps in PrepareNuGetPackage matched
zero <dependency> nodes across the surviving nuspecs: the three
Uno.WinUI.Runtime.Skia.{Linux.FrameBuffer,MacOS,X11} pokes (orphaned by
BC07 deleting the meta nuspecs that declared them) and the pre-existing
Uno.Foundation.Runtime.WebAssembly poke (orphaned by the earlier WASM
head removal). Pure no-op removal completing BC07's pack de-wiring.

Verified by enumerating every dependency id across build/nuget/*.nuspec.
The remaining dead pokes (DevServer, XamlHost, Adapter.M.E.Logging) are
pre-existing orphans unrelated to BC07/WASM and left for a later sweep.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@Xiaoy312
Xiaoy312 force-pushed the dev/xygu/20260708/bc07-remove-skia-bootstrapper-metas branch from 8cb8e1e to cff6708 Compare July 15, 2026 17:17
@unodevops

Copy link
Copy Markdown
Contributor

@MartinZikmund
MartinZikmund merged commit 45eb788 into feature/breakingchanges Jul 16, 2026
67 checks passed
@MartinZikmund
MartinZikmund deleted the dev/xygu/20260708/bc07-remove-skia-bootstrapper-metas branch July 16, 2026 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build Categorizes an issue or PR as relevant to build infrastructure area/solution-templates Categorizes an issue or PR as relevant to the solution template kind/documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants