Skip to content

feat(sdk): Bundle Uno.HotTesting.Reactive with MVUX - #25095

Merged
Xiaoy312 merged 3 commits into
masterfrom
dev/xygu/20261007/sdk-mvux-bundle-hottesting
Oct 8, 2026
Merged

Xiaoy312 merged 3 commits into
masterfrom
dev/xygu/20261007/sdk-mvux-bundle-hottesting

Conversation

@Xiaoy312

@Xiaoy312 Xiaoy312 commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

GitHub Issue: unoplatform/uno.extensions#3211

PR Type:

✨ Feature

What changed? 🚀

Projects using UnoFeatures=MVUX now get an implicit reference to Uno.HotTesting.Reactive (MVUX feed mocks for previews and UI tests) in non-optimized builds only. The package is in the Extensions group, so it follows UnoExtensionsVersion.

  • packages.json: the Extensions group is bumped from 7.3.0-dev.102 to 7.4.0-dev.81, and Uno.HotTesting.Reactive is appended last.
    • 7.4.0-dev.81 is the newest build whose dependencies (Uno.WinUI 6.8, Toolkit 8.4.2, Uno.WinUI.Markup 5.3.12) stay within the current Toolkit and C# Markup pins.
    • Every group package is published at that version.
  • Uno.Extensions.Implicit.Packages.ProjectSystem.targets: in the mvux ItemGroup, the reference is gated on $(Optimize) != 'true' and UnoDisableHotTesting (a new opt-out). It carries:
    • PrivateAssets="all", so the dev-only package doesn't flow to projects that reference yours, nor into the nuspec of a library packed in Debug;
    • AvailableSince="7.4".
  • ImplicitPackagesResolver: honors AvailableSince. It skips the package and logs the new UNOB0028 message (Normal importance) when the resolved group version is any of these:
    • older than 7.4 (numeric comparison);
    • a floating version or a range — these would otherwise fail restore with NU1103, because HotTesting has no stable release;
    • missing from the manifest. The package is skipped instead of being fetched from nuget.org, so this PR and the Uno.Templates manifest PR can merge in either order.
  • Docs:
    • a new "MVUX feed mocks in non-optimized builds" section in using-the-uno-sdk.md;
    • a row in migrating-to-uno-7.md;
    • UNOB0028 in uno-build-error-codes.md;
    • UnoDisableHotTesting in the buildschema.

The package's own follow-ups (generator incrementality, diagnostic severity, mock accessibility) belong to uno.extensions and are tracked on the issue.

Companion PR: unoplatform/uno.templates#2305 adds the package to the manifest the public Uno.Sdk ships.

Validation

  • Compile: Uno.Sdk.csproj builds with analyzers enabled: 0 warnings, 0 errors.
  • SDK resolver probe (locally packed Uno.Sdk.Private, UnoFeatures=MVUX, net10.0-desktop, UnoImplicitPackages target):
    • Debug includes Uno.HotTesting.Reactive 7.4.0-dev.81 with PrivateAssets=all, and the AvailableSince metadata is stripped.
    • Absent for: Release, Optimize=true, UnoDisableHotTesting=true, UnoExtensionsVersion 7.2.3 or 7.3.0-dev.102, 7.*, 7.4.*, [7.4.0-dev.81,8.0), and a manifest without the entry (UNOB0028, no nuget.org call).
    • Included for 7.4, 7.4.0-dev.22 and 8.0.0-dev.72.
  • Real app: a recommended MVUX template app (Uno.Sdk 6.8.0-dev.51), with the package referenced the way this PR does:
    • Debug builds for desktop and Android with 0 warnings.
    • Release has no HotTesting in either restore or output.
    • A Debug restore followed by build -c Release --no-restore fails fast on an app head with the existing UNOB0019.
  • Not run: a full restore through this branch's SDK, because the locally packed SDK pins Uno core to 255.255.255.255. uno's template CI doesn't exercise MVUX yet (run-netcore-mobile-template-tests.ps1 forces UnoFeaturesOverride=Svg).

PR Checklist ✅

  • 🧪 Added Runtime tests, UI tests, or a manual test sample. N/A: SDK/MSBuild change, and Uno.Sdk has no test project. Validated with the probes above.
  • 📚 Docs have been added/updated
  • 🖼️ Validated PR Screenshots Compare Test Run results. N/A
  • ❗ Contains NO breaking changes. The new reference is additive, Debug-only and opt-out-able; pinned older Extensions versions skip it.
  • 👀 Reviewed 2 other open pull requests

🤖 Generated with Claude Code

Xiaoy312 and others added 3 commits October 7, 2026 15:04
Add Uno.HotTesting.Reactive to the Extensions group and reference it
implicitly for the MVUX feature in non-optimized builds only, like
Uno.UI.HotDesign: the feed-mocking package is dev/test-only and must not
reach a published app. Bump the Extensions group to 7.4.0-dev.81, the
latest build that ships the package while staying within the current
Toolkit and C# Markup pins.

Refs unoplatform/uno.extensions#3211

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- UnoDisableHotTesting suppresses the implicit reference.
- A MinimumVersion item metadata, honored by ImplicitPackagesResolver,
  skips the package when UnoExtensionsVersion pins a build older than
  7.4, instead of floating it past the pinned Extensions packages.
- PrivateAssets="all" keeps the dev-only package out of consumers and
  out of the nuspec of a library packed in Debug.
- Document the behavior, the Release constraint and the lock-file split.

Refs unoplatform/uno.extensions#3211

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Replace the MinimumVersion floor with AvailableSince, checked before
the nuget.org fallback:
- compare numeric parts only, so the floor doesn't rely on how
  NuGetVersion orders a prerelease against its stable release;
- treat floating versions and ranges as unavailable (they restored
  with NU1103, as no stable HotTesting exists);
- skip, rather than fetch the latest from nuget.org, when the shipped
  manifest has no version for the package, which removes the ordering
  dependency on the Uno.Templates manifest.
Report each skip as UNOB0028 and document it, the --no-restore caveat
and the test-project version rule.

Refs unoplatform/uno.extensions#3211

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@unodevops

Copy link
Copy Markdown
Contributor

@Xiaoy312
Xiaoy312 enabled auto-merge October 8, 2026 15:05
@mergify

mergify Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

@Xiaoy312
Xiaoy312 merged commit 26b7f82 into master Oct 8, 2026
58 checks passed
@Xiaoy312
Xiaoy312 deleted the dev/xygu/20261007/sdk-mvux-bundle-hottesting branch October 8, 2026 15:41
@Xiaoy312

Copy link
Copy Markdown
Contributor Author

@mergify backport servicing/6.8

@mergify

mergify Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

backport servicing/6.8

✅ Backports have been created

Details

Cherry-pick of fe7d333 has failed:

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

You are currently cherry-picking commit fe7d333.
  (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)

Changes to be committed:
	modified:   doc/articles/features/using-the-uno-sdk.md
	modified:   src/Uno.Sdk/Models/PackageReference.cs
	modified:   src/Uno.Sdk/Sdk/Sdk.props.buildschema.json
	modified:   src/Uno.Sdk/Tasks/ImplicitPackagesResolver.cs
	modified:   src/Uno.Sdk/targets/Uno.Extensions.Implicit.Packages.ProjectSystem.targets

Unmerged paths:
  (use "git add/rm <file>..." as appropriate to mark resolution)
	deleted by us:   doc/articles/migrating-to-uno-7.md

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

Xiaoy312 added a commit that referenced this pull request Oct 14, 2026
The cherry-pick of #25095 hit a modify/delete conflict on
migrating-to-uno-7.md, which doesn't exist on servicing/6.8, and
resolved it by adding the whole 7.0 guide. Its "Retarget" word also
fails the cspell check. The HotTesting change stays documented in
using-the-uno-sdk.md and uno-build-error-codes.md.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Xiaoy312 added a commit that referenced this pull request Oct 16, 2026
The cherry-pick of #25095 hit a modify/delete conflict on
migrating-to-uno-7.md, which doesn't exist on servicing/6.8, and
resolved it by adding the whole 7.0 guide. Its "Retarget" word also
fails the cspell check. The HotTesting change stays documented in
using-the-uno-sdk.md and uno-build-error-codes.md.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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 kind/documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants