Repository navigation
feat(sdk): Bundle Uno.HotTesting.Reactive with MVUX (backport #25095) - #25407
mergify[bot] wants to merge 4 commits into
Conversation
|
Cherry-pick of fe7d333 has failed: 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 |
|
|
|
|
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-25407/docs/index.html |
|
|
|
CI errors, blocked behind #25491 |
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]> (cherry picked from commit 4b1a8f4)
- 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]> (cherry picked from commit fe7d333) # Conflicts: # doc/articles/migrating-to-uno-7.md
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]> (cherry picked from commit bf2e86f)
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]>
d4b8e5b to
f0b9406
Compare
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-25407/docs/index.html |
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
|
|
Tick the box to add this pull request to the merge queue (same as
|
GitHub Issue: unoplatform/uno.extensions#3211
PR Type:
✨ Feature
What changed? 🚀
Projects using
UnoFeatures=MVUXnow get an implicit reference toUno.HotTesting.Reactive(MVUX feed mocks for previews and UI tests) in non-optimized builds only. The package is in theExtensionsgroup, so it followsUnoExtensionsVersion.packages.json: theExtensionsgroup is bumped from7.3.0-dev.102to7.4.0-dev.81, andUno.HotTesting.Reactiveis appended last.Uno.Extensions.Implicit.Packages.ProjectSystem.targets: in themvuxItemGroup, the reference is gated on$(Optimize) != 'true'andUnoDisableHotTesting(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: honorsAvailableSince. It skips the package and logs the newUNOB0028message (Normal importance) when the resolved group version is any of these:using-the-uno-sdk.md;migrating-to-uno-7.md;UNOB0028inuno-build-error-codes.md;UnoDisableHotTestingin 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.Sdkships.Validation
Uno.Sdk.csprojbuilds with analyzers enabled: 0 warnings, 0 errors.Uno.Sdk.Private,UnoFeatures=MVUX, net10.0-desktop,UnoImplicitPackagestarget):Uno.HotTesting.Reactive 7.4.0-dev.81withPrivateAssets=all, and theAvailableSincemetadata is stripped.Optimize=true,UnoDisableHotTesting=true,UnoExtensionsVersion7.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).7.4,7.4.0-dev.22and8.0.0-dev.72.build -c Release --no-restorefails fast on an app head with the existingUNOB0019.run-netcore-mobile-template-tests.ps1forcesUnoFeaturesOverride=Svg).PR Checklist ✅
Screenshots Compare Test Runresults. N/A🤖 Generated with Claude Code
This is an automatic backport of pull request #25095 done by [Mergify](https://mergify.com).