Skip to content

chore(sdk): Align Uno.Sdk.Private implicit package versions with the public manifest - #23911

Merged
MartinZikmund merged 3 commits into
masterfrom
dev/agzi/align-sdk-private-package-versions
Aug 6, 2026
Merged

MartinZikmund merged 3 commits into
masterfrom
dev/agzi/align-sdk-private-package-versions

Conversation

@agneszitte

@agneszitte agneszitte commented Jul 29, 2026 •

Copy link
Copy Markdown
Member

GitHub Issue: closes https://github.com/unoplatform/uno-private/issues/2269

PR Type:

🏗️ Build or CI related changes

What changed? 🚀

Uno.Sdk.Private (packed from src/Uno.Sdk/packages.json here) and the public Uno.Sdk (packed from
the same-named manifest in uno.templates) are two
independent version manifests — the public package repacks this repo's .props/.targets/.dll but
ships its own pins. They drifted apart on 15 groups, and the Toolkit gap became a hard restore
failure.

Uno.UI.HotDesign 1.20.0-dev.* requires Uno.Toolkit.WinUI 9.0.0-dev.9, while the private SDK
added Uno.Toolkit.WinUI 8.5.0-dev.37 as an implicit direct reference — a direct reference below
a transitive requirement, i.e. NU1605:

Warning As Error: Detected package downgrade: Uno.Toolkit.WinUI from 9.0.0-dev.9 to 8.5.0-dev.37.
    MyApp -> Uno.UI.HotDesign 1.20.0-dev.* -> Uno.Toolkit.WinUI (>= 9.0.0-dev.9)
    MyApp -> Uno.Toolkit.WinUI (>= 8.5.0-dev.37)

This aligns all 15 stale groups with the public manifest. 13 had an outdated version:

group before after
Toolkit 8.5.0-dev.37 9.1.0-dev.2
Themes 7.0.0-dev.24 7.1.0-dev.1
hotdesign 1.19.175 1.20.0-dev.750
Extensions 7.2.3 7.3.0-dev.102
CSharpMarkup 6.6.27 6.7.0-dev.16
settings 1.8.0-dev.42 1.13.0-dev.7
AppMcp 1.3.0-dev.36 1.3.0-dev.98
Resizetizer 1.13.0-dev.11 1.13.0-dev.17
sdkextras 6.4.0-dev.7 6.4.0-dev.13
UnoFonts 2.8.1 2.9.4
MsalClient 4.83.3 4.87.0
WinAppSdkBuildTools 10.0.28000.2270 10.0.28000.2526
WinAppSdkBuildToolsWinApp 0.3.1 0.5.0

…plus the two net10.0 versionOverride entries the public manifest carries: WasmBootstrap
10.1.0-dev.137 → 10.1.0-dev.214 and Maui 10.0.60 → 10.0.90. These do not affect this repo's
own builds — Uno.Wasm.Bootstrap is pinned separately in src/Directory.Build.targets, and the only
in-repo Uno.Sdk consumers are the SolutionTemplate fixtures with their own pinned global.json.

All 15 target versions were verified to resolve on nuget.org (Uno.Sdk.Private is published there, so
every pin has to be publicly restorable).

After this PR the two manifests are fully aligned. A field-by-field comparison (group set, group
order, packages lists, version, versionOverride) leaves exactly one intentional difference: the
Core group's DefaultUnoVersion placeholder, which Uno.Sdk.csproj substitutes at pack time and
Uno.Build.targets validates — that one must stay a token. This also makes the CI equality check
suggested in unoplatform/uno-private#2269 straightforward to add.

Second commit: the settings bump turned Uno.Sdk.AddInVersionValidation.Tests red —
Uno.Settings.DevServer 1.13.0-dev.7 needs Microsoft.IO.RecyclableMemoryStream 3.0.1 while
Uno.UI.RemoteControl.Host pinned 3.0.0, so the add-in would load its own bundled copy into Default
ALC alongside the host's. Bumping the host pin to 3.0.1 (the version the add-in ships) restores the
gate to green — that's the test's own prescribed resolution.

Note that the 8.5 Toolkit line is retired (there is no release/stable/8.5 branch); Toolkit's default
branch is on 9.1 and Themes on 7.1, so this moves onto maintained lines.

Dependency-graph risk check

Every package in the manifest was fetched at its new pin and each dependency edge pointing at another
SDK-managed package was compared against what the manifest provides, to catch any pin that now sits
below a dependency floor (i.e. a new NU1605). Run for both the default TFM and the net10.0 override
set, and diffed against the same scan on origin/master:

  • 327 SDK-managed edges checked. No new downgrade is introduced anywhere in the Uno stack —
    Toolkit 9.1, Themes 7.1, Hot Design 1.20, Extensions 7.3, CSharpMarkup 6.7, settings and AppMcp are
    mutually consistent, and Hot Design's floors (Uno.Toolkit.WinUI 9.0.0-dev.9, Uno.Themes.WinUI
    7.0.0-dev.36, Uno.WinUI 6.7.0-dev.688) are all satisfied.
  • Pre-existing, untouched by this PR: Xamarin.AndroidX.Wear needs RecyclerView and
    SwipeRefreshLayout above their pins, on both TFM sets. Identical on origin/master and in the
    public manifest; only reachable by apps enabling that feature. Not addressed here.
  • Pre-existing, floor raised by the Maui bump: on net10.0-windows* only,
    Microsoft.Maui.Graphics requires Microsoft.WindowsAppSDK above the pinned 1.7.250909003 — already
    true on origin/master (10.0.60 → ≥ 1.8.251106002), and 10.0.90 moves that floor to ≥ 1.8.260508005.
    Worth knowing: this is not new behavior, since uno.templates main pins the same Maui 10.0.90
    alongside the same WinAppSdk 1.7.250909003, so the public 6.7 dev SDK already ships this exact
    combination. Bumping WinAppSdk is deliberately out of scope here — it would break the alignment this
    PR exists to establish, and belongs in its own change.

One consumer-facing note: for anyone using Uno.Sdk.Private without pinning their own
UnoToolkitVersion, this moves Toolkit across a major boundary (8.5 → 9.1), so Toolkit API breaking
changes are possible in their code. That aligns them with what the public 6.7 SDK already hands to
every app — the private SDK was the outlier.

Validation evidence

  • Code review assessment: the manifest diff is 15 version strings and nothing else; JSON structure,
    group order, and package lists are unchanged, and a field-by-field comparison against uno.templates
    main now reports the Core token as the only difference. No other file in the repo referenced the
    old versions.
  • Compile validation: Uno.UI.RemoteControl.Host (net10.0, Debug) builds — it is a
    ProjectReference of the alignment test project and was rebuilt on each run below.
  • Runtime validation: dotnet test src/Uno.Sdk.AddInVersionValidation.Tests — this test injects the
    settings/hotdesign/AppMcp PackageReferences straight from packages.json, so it exercises the
    bumped versions directly:
    • baseline (unmodified master): passed
    • version-pin alignment only: failed — 1 latent conflict (Microsoft.IO.RecyclableMemoryStream,
      host 3.0.0.0 vs add-in 3.0.1.0)
    • alignment + host pin bump: passed
    • full alignment incl. the net10.0 overrides: passed
  • Not run locally — no runtime validation for the WasmBootstrap and Maui net10.0 overrides.
    An earlier revision of this description argued those two deserved separate validation before being
    included; they were then included (for full alignment) without that validation being performed. Stating
    that plainly rather than implying coverage that does not exist. What is established for them: they
    are the exact values the public Uno.Sdk 6.7 dev manifest already ships to apps, they do not affect
    this repo's own builds (Uno.Wasm.Bootstrap is pinned separately in src/Directory.Build.targets,
    and the only in-repo Uno.Sdk consumers are the SolutionTemplate fixtures with their own pinned
    global.json), and the dependency-graph scan above found no new conflict from either. What is not
    established is app-level runtime behavior on net10.
    To close that gap, on a generated net10 app pinned to this branch's SDK build:
    dotnet build -f net10.0-browserwasm   # exercises Uno.Wasm.Bootstrap 10.1.0-dev.214
    dotnet build -f net10.0-desktop       # with <UnoFeatures>Maui</UnoFeatures> for Maui 10.0.90
    
    If a reviewer would rather not carry unvalidated overrides, dropping commit ea8a1df4 is a clean
    two-line revert — the trade-off is that WasmBootstrap/Maui stay divergent and unoplatform/uno-private#2270's equality
    check would need those two entries allowlisted.
  • Not run locally: the wider runtime/UI test suites and the DevServer integration tests. The
    RecyclableMemoryStream change is a patch-level bump of the version the add-in already ships;
    leaving broader coverage to CI.

PR Checklist ✅

No tests or docs added, deliberately: this is a version-manifest edit with no API or behavior change
of its own. The relevant coverage already exists — Uno.Sdk.AddInVersionValidation.Tests reads these
versions straight from packages.json, so it exercises the bumped versions without modification (and it
is what caught the RecyclableMemoryStream gap). Nothing user-facing changed, so there is no docs
impact.

🤖 Generated with Claude Code

agneszitte and others added 2 commits July 29, 2026 14:07
Bring the Uno.Sdk.Private manifest back in line with the public Uno.Sdk
manifest in uno.templates. The Toolkit pin (8.5.0-dev.37) sat below the
floor Uno.UI.HotDesign 1.20 requires (9.0.0-dev.9), so any app combining
the private SDK with a 1.20 Hot Design build failed restore with NU1605.

The 8.5 Toolkit line is retired (no release/stable/8.5 branch); Toolkit's
default branch is on 9.1 and Themes on 7.1.

The net10.0 versionOverride bumps for WasmBootstrap and Maui are left out
on purpose — those change platform runtime behavior and deserve their own
validation rather than riding along in a version-alignment fix.

Related to https://github.com/unoplatform/uno/issues/23910

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Uno.Settings.DevServer 1.13.0-dev.7 needs Microsoft.IO.RecyclableMemoryStream
3.0.1 while the host pinned 3.0.0, so AddInVersionAlignmentTests flagged the
add-in loading its own bundled copy alongside the host's into Default ALC.

Related to https://github.com/unoplatform/uno/issues/23910

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings July 29, 2026 18:08
@github-actions github-actions Bot added the area/sdk Categorizes an issue or PR as relevant to the Uno.Sdk label Jul 29, 2026
@github-actions

github-actions Bot commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @agneszitte's task in 1m 25s —— View job


Review

  • Gather context and understand the PR
  • Read changed files
  • Review version bumps against public manifest
  • Check for any issues or inconsistencies
  • Post inline comments and summary

Verdict: LGTM — no blocking issues. This is a clean, focused version-alignment PR.

Overall Assessment

The diff is exactly what it claims to be: 13 version string replacements in packages.json and one patch-level bump in Uno.UI.RemoteControl.Host.csproj. No structural changes to JSON, no package list changes, no logic changes.

Version table vs. diff — all 13 entries in the PR description table match the actual diff exactly. The deliberate exclusions (WasmBootstrap net10.0 override 10.1.0-dev.137 and Maui net10.0 override 10.0.60) are still unchanged in packages.json, which is consistent with the stated rationale of keeping platform-runtime behavior changes separate.

RecyclableMemoryStream bump — bumping the host's Microsoft.IO.RecyclableMemoryStream pin from 3.0.0 → 3.0.1 is the correct prescribed resolution for a Case 1 latent conflict: the add-in (Uno.Settings.DevServer 1.13.0-dev.7) bundles 3.0.1 and the host pinned 3.0.0, so Default ALC would have carried two copies. The bump brings the host in line with what the add-in ships.

Test coverage — the Uno.Sdk.AddInVersionValidation.Tests suite exercises the exact packages changed here (the three add-ins: Uno.Settings.DevServer, Uno.UI.HotDesign, Uno.UI.App.Mcp). The PR's validation trail (baseline passed → manifest-only failed → alignment + host bump passed) is a complete red/fix/green demonstration. No new tests are needed for a pure version-alignment change.

Commit discipline — both commits follow Conventional Commits (chore(sdk): … / fix(devserver): …). The second commit title accurately describes its scope.

No concerns on: cross-platform correctness (no platform-targeted code touched), DependencyProperty patterns, async/cancellation discipline, code style, or XAML formatting — none of these categories apply to JSON and a .csproj version pin.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Aligns the private SDK’s implicit package version manifest (src/Uno.Sdk/packages.json) with the public Uno.Sdk manifest to prevent dependency downgrades (notably the Toolkit/HotDesign NU1605 restore failure), and updates the DevServer host’s RecyclableMemoryStream pin to match the version required by the updated settings add-in.

Changes:

  • Bumped 13 package groups in src/Uno.Sdk/packages.json to match the public Uno.Sdk manifest pins (Toolkit/Themes/HotDesign/etc.).
  • Updated Microsoft.IO.RecyclableMemoryStream from 3.0.0 to 3.0.1 in Uno.UI.RemoteControl.Host.csproj to resolve the add-in version validation test conflict.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/Uno.Sdk/packages.json Updates version pins for 13 manifest groups to align private SDK dependencies with the public SDK manifest and avoid NU1605 downgrades.
src/Uno.UI.RemoteControl.Host/Uno.UI.RemoteControl.Host.csproj Bumps Microsoft.IO.RecyclableMemoryStream to 3.0.1 to match add-in requirements and keep add-in version validation green.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Completes the alignment with the public Uno.Sdk manifest: the only
remaining difference is the Core group's DefaultUnoVersion token, which
Uno.Sdk.csproj substitutes at pack time and must stay as-is.

These overrides do not affect this repo's own builds — Uno.Wasm.Bootstrap
is pinned separately in src/Directory.Build.targets, and the only in-repo
Uno.Sdk consumers are the SolutionTemplate fixtures with their own pinned
global.json.

Related to https://github.com/unoplatform/uno/issues/23910

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings July 29, 2026 18:16
@github-actions

github-actions Bot commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @agneszitte's task in 1m 58s —— View job


Review

  • Gather context and understand the PR
  • Read changed files
  • Review version bumps against public manifest
  • Check for any issues or inconsistencies
  • Post inline comments and summary

Overall Assessment

The manifest diff and .csproj pin change are mechanically clean — pure version-string replacements, no structural or logic changes. One finding worth addressing before merge.

1 issue found (informational / low severity)

The PR description's "Deliberately excluded" section explicitly states that the WasmBootstrap (net10.0) and Maui (net10.0) version overrides were kept out because they "change platform runtime behavior and deserve their own validation." However, commit ea8a1df4 (chore(sdk): Align net10 WasmBootstrap and Maui overrides) was added after the description was written and includes both of those bumps. The PR description was never updated, so it still says these changes are absent when they are not.

Practical consequences:

  • The 13-row change table and the "Deliberately excluded" paragraph are now factually incorrect.
  • The PR's validation trail covers only Uno.Sdk.AddInVersionValidation.Tests; no runtime evidence is provided for the WasmBootstrap/Maui overrides that the author's own rationale said needed separate validation.

No issues found on: JSON structure/order, DependencyProperty patterns, async/cancellation discipline, events, platform targeting, XAML formatting, code style, or release-build cleanliness (no .cs or XAML touched). RecyclableMemoryStream 3.0.0 → 3.0.1 is correct per the prescribed Case 1 resolution. All three commit titles follow Conventional Commits.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (2)

src/Uno.Sdk/packages.json:350

  • The PR description says the net10.0 Maui versionOverride bump (10.0.60 → 10.0.90) is deliberately excluded, but this change applies it. Either revert this override to keep the PR scoped to version alignment only, or update the PR description/validation to cover the platform/runtime behavior change.
		"versionOverride": {
			"net10.0": "10.0.90"
		}

src/Uno.Sdk/packages.json:43

  • The PR description says the net10.0 WasmBootstrap versionOverride bump (10.1.0-dev.137 → 10.1.0-dev.214) is deliberately excluded, but this change applies it. Either revert this override to keep the manifests intentionally different as described, or update the PR description/validation to cover the runtime behavior change.

This issue also appears on line 348 of the same file.

		"versionOverride": {
			"net10.0": "10.1.0-dev.214"
		}

Comment thread src/Uno.Sdk/packages.json Resolved
@unodevops

Copy link
Copy Markdown
Contributor

@carldebilly carldebilly left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MartinZikmund
MartinZikmund enabled auto-merge August 6, 2026 12:08
@MartinZikmund
MartinZikmund merged commit 71d80ed into master Aug 6, 2026
70 checks passed
@MartinZikmund
MartinZikmund deleted the dev/agzi/align-sdk-private-package-versions branch August 6, 2026 12:08
@mergify

mergify Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@kazo0

kazo0 commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

@Mergifyio backport release/stable/6.5

@kazo0

kazo0 commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

@Mergifyio backport release/stable/6.7

@mergify

mergify Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

backport release/stable/6.5

✅ Backports have been created

Details

Cherry-pick of 418e1ec has failed:

On branch mergify/bp/release/stable/6.5/pr-23911
Your branch is up to date with 'origin/release/stable/6.5'.

You are currently cherry-picking commit 418e1ec2cd.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   src/Uno.Sdk/packages.json

no changes added to commit (use "git add" and/or "git commit -a")

Cherry-pick of 027d953 has failed:

On branch mergify/bp/release/stable/6.5/pr-23911
Your branch is ahead of 'origin/release/stable/6.5' by 1 commit.
  (use "git push" to publish your local commits)

You are currently cherry-picking commit 027d9533fb.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   src/Uno.UI.RemoteControl.Host/Uno.UI.RemoteControl.Host.csproj

no changes added to commit (use "git add" and/or "git commit -a")

Cherry-pick of ea8a1df has failed:

On branch mergify/bp/release/stable/6.5/pr-23911
Your branch is ahead of 'origin/release/stable/6.5' by 2 commits.
  (use "git push" to publish your local commits)

You are currently cherry-picking commit ea8a1df444.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   src/Uno.Sdk/packages.json

no changes added to commit (use "git add" and/or "git commit -a")

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

@mergify

mergify Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

backport release/stable/6.7

✅ Backports have been created

Details

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

Labels

area/sdk Categorizes an issue or PR as relevant to the Uno.Sdk

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants