Skip to content

Cleanup redundant NuGet packages [7.0] #17686

Description

@Youssef1313

What would you like to be added

Taking X11 as an example, but applies to other targets. There is Uno.WinUI.Skia.X11 NuGet package as well as Uno.WinUI.Runtime.Skia.X11

Only the Uno.WinUI.Runtime.Skia.X11 should be present. The other package is redundant and just declares Uno.WinUI.Runtime.Skia.X11 as a dependency

Why is this needed

No response

For which platform

No response

Anything else we need to know?

No response

Activity

  1. added
    kind/enhancement
    triage/untriaged
    difficulty/tbd
    on Jul 24, 2024
  2. self-assigned this
    on Jul 24, 2024
  3. github-actions commented on Aug 24, 2025

    @github-actions
    Contributor

    Hey there — just a heads-up that this issue has been quiet for over a year. If there’s no update or comment in the next 10 days, it’ll be closed automatically. Feel free to remove the stale label or drop a note to keep it open.

  4. added
    stale
    on Aug 24, 2025
  5. removed
    stale
    on Aug 25, 2025
  6. added
    project/core-tools 🛠️
    and removed
    triage/untriaged
    difficulty/tbd
    on Nov 24, 2025
  7. github-actions commented on May 6, 2026

    @github-actions
    Contributor

    This issue has had no activity for 120 days. It will be closed in 10 days if there is no further activity. Remove the Stale label or leave a comment to keep it open.

  8. added
    stale
    on May 6, 2026
  9. removed
    stale
    on May 6, 2026
  10. 1 remaining item

  11. MartinZikmund commented on Aug 3, 2026

    @MartinZikmund
    Member

    Audit result: DONE in feature/breakingchanges (as of 43acbf69dd).

    Every empty "bootstrapper" meta-package that only redirected to the real, code-bearing Uno.WinUI.Runtime.* head has been removed from the 7.0 pack pipeline — including the Uno.WinUI.Skia.X11 case named in this issue, and the other targets it generalises to.

    • Nuspecs deleted — build/nuget/ on the branch contains only Uno.WinUI, Uno.Foundation, Uno.WinRT, Uno.WinUI.Lottie, Uno.WinUI.MSAL, Uno.WinUI.Graphics2DSK, Uno.WinUI.Svg, Uno.WinUI.DevServer, Uno.WinUI.XamlHost — each carries <file> entries, i.e. ships code. Uno.WinUI.Skia.X11.nuspec, Uno.WinUI.Skia.MacOS.nuspec, Uno.WinUI.Skia.Linux.FrameBuffer.nuspec and Uno.WinUI.WebAssembly.nuspec are gone (all four still exist on master). Gtk/WPF metas disappeared earlier along with their heads.
    • Pack pipeline de-wired — _NuspecFiles (build/Uno.UI.Build.csproj:149-157) and the nuget pack calls in BuildNuGetPackage (:196-206) match that list exactly.
    • SDK package list clean — src/Uno.Sdk/packages.json:14-20 lists only Uno.WinUI.Runtime.Skia.* heads; no meta ids remain.
    • Consumers repointed — src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI.Skia.Linux.FrameBuffer/UnoAppWinUI.Skia.Linux.FrameBuffer.csproj:12 and .../UnoAppWinUILinuxValidation.Skia.Linux.FrameBuffer.csproj:12 now reference Uno.WinUI.Runtime.Skia.Linux.FrameBuffer.
    • Regression guard — ValidateNoNativeUIHeadPackages (build/Uno.UI.Build.csproj:209-215) fails the Release pack if Uno.WinUI.WebAssembly or Uno.WinUI.Runtime.WebAssembly is ever produced again.
    • Remaining textual mentions are intentional — the migration note in doc/articles/migrating-to-uno-7.md:55-56 and the historical file lists in specs/050-breaking-changes-rollup/{spec.md,assessments-raw.json}.

    Fixed by #23712 (the three Skia metas, BC07), #23492 (Uno.WinUI.WebAssembly meta, commit 8a63ce3be1)

    Not covered / follow-up (does not block closing)

    Legacy template projects still name removed packages. All three are byte-identical to origin/master and unreachable in CI — they sit behind build/test-scripts/run-netcore-mobile-template-tests.ps1:34 ($TestGroup -eq 0 -and $env:UWPBuildEnabled -eq 'True'), while the pipeline only runs TestGroup 1-4 — so nothing ships or builds from them, but they are worth a hygiene pass:

    • src/SolutionTemplate/MyCrossRuntimeLib/MyCrossRuntimeLib/MyCrossRuntimeLib.Wasm.csproj:10 → Uno.WinUI.Runtime.WebAssembly
    • src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.Wasm/MyAppXamlTrim.Wasm.csproj:50 → Uno.UI.WebAssembly
    • src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.Skia.Linux.FrameBuffer/MyAppXamlTrim.Skia.Linux.FrameBuffer.csproj:16 → Uno.UI.Skia.Linux.FrameBuffer

    Adjacent to the native-WASM drop rather than to this issue: src/Uno.Sdk/packages.json:21 still lists Uno.WinUI.MediaPlayer.WebAssembly with no matching project under src/AddIns, and doc/articles/guides/silverlight-migration/01-create-uno-solution.md:52 still instructs referencing Uno.WinUI.WebAssembly.

    #17788 ("build: Cleanup packages") was the original attempt against master; it is still open and is now superseded — it should be closed alongside this issue.

    Audit is code inspection against the branch worktree; no build or runtime validation was performed.

  12. changed the title [-]Cleanup redundant NuGet packages[/-] [+]Cleanup redundant NuGet packages [7.0 ][/+] on Aug 9, 2026
  13. changed the title [-]Cleanup redundant NuGet packages [7.0 ][/-] [+]Cleanup redundant NuGet packages [7.0][/+] on Aug 9, 2026
  14. MartinZikmund commented on Aug 27, 2026

    @MartinZikmund
    Member

    Audit result: DONE in feature/breakingchanges (as of 0950717a0d7).

    Re-verified against the current branch tip — the prior 2026-08-24 verdict still holds and nothing in the 162 commits since has touched the meta-package files. Every empty "bootstrapper" nuspec that shipped no assets and only redirected to the real, code-bearing Uno.WinUI.Runtime.* head is gone, including the Uno.WinUI.Skia.X11 case named in this issue.

    Landed

    • Meta nuspecs deleted — build/nuget/ currently holds only Uno.WinUI, Uno.Foundation, Uno.WinRT, Uno.WinUI.Lottie, Uno.WinUI.MSAL, Uno.WinUI.Graphics2DSK, Uno.WinUI.Svg, Uno.WinUI.DevServer, Uno.WinUI.XamlHost (ls build/nuget/). Uno.WinUI.Skia.X11.nuspec, Uno.WinUI.Skia.MacOS.nuspec, Uno.WinUI.Skia.Linux.FrameBuffer.nuspec and Uno.WinUI.WebAssembly.nuspec are all absent from that directory.
    • Pack pipeline de-wired — build/Uno.UI.Build.csproj:150-158's _NuspecFiles item group lists exactly the nine surviving nuspecs above; no Uno.WinUI.Skia.* or Uno.WinUI.WebAssembly entry remains.
    • No meta ids remain in the SDK manifest — src/Uno.Sdk/packages.json:14-20 lists only the Uno.WinUI.Runtime.Skia.* heads (Linux.FrameBuffer, MacOS, Win32, X11, Android, AppleUIKit, WebAssembly.Browser); grepping src/Uno.Sdk for Uno.WinUI.Skia. or Uno.WinUI.(Runtime.)?WebAssembly returns nothing.
    • Regression guard still present — ValidateNoNativeUIHeadPackages (build/Uno.UI.Build.csproj:210) runs AfterTargets="BuildNuGetPackage" and fails a Release pack if a native-head meta package reappears.

    Landed via #23712 (build!: Remove redundant Skia bootstrapper metas (BC07), merged 2026-07-16, merge commit 45eb788d730), #23492 (Native CI cleanup, merged 2026-06-19, dropped Uno.WinUI.WebAssembly), #23261 (feat!: Drop WPF targets, merged 2026-06-09, took the WPF meta with the head), and #23772 (refactor(sdk)!: Remove MacCatalyst & net-macos heads from Uno.Sdk, merged 2026-08-11). All four merge commits are ancestors of HEAD.

    Caveats (not blocking)

    • Three unreachable legacy templates still reference pre-Uno.Sdk head ids (Uno.WinUI.Runtime.WebAssembly, Uno.UI.WebAssembly, Uno.UI.Skia.Linux.FrameBuffer — a different, older naming scheme than the Uno.WinUI.Skia.* metas this issue targets): src/SolutionTemplate/MyCrossRuntimeLib/MyCrossRuntimeLib/MyCrossRuntimeLib.Wasm.csproj:10, src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.Wasm/MyAppXamlTrim.Wasm.csproj:50, src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.Skia.Linux.FrameBuffer/MyAppXamlTrim.Skia.Linux.FrameBuffer.csproj:16. They are unreachable in CI — gated behind ($TestGroup -eq 0) -and ($env:UWPBuildEnabled -eq 'True') in build/test-scripts/run-netcore-mobile-template-tests.ps1:34, and UWPBuildEnabled is set nowhere under build/. Unchanged since the last audit round; still a hygiene item, not a blocker for this issue.
    • build: Cleanup packages #17788 ("build: Cleanup packages") is still open and remains superseded by the work above.

    Audit is code inspection against the branch worktree; no build or runtime validation was performed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/enhancementproject/core-tools 🛠️

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions