Repository navigation
fix(hr): Probe runtime platform for hot-reload TFM on skia-mobile heads (backport #23790) - #23791
Merged
Merged
Conversation
The client computed the platform of its RuntimeTargetFramework from compile-time symbols (__ANDROID__ & co.). Those symbols are meaningless on skia-rendering android/ios/maccatalyst/tvos heads: the uno-runtime asset selection swaps the plain-netX.0 skia flavor of Uno.UI.RemoteControl.dll in for the per-platform one, so the client reported the 'netX.0-skia' pseudo-TFM and the server restricted the hot-reload workspace to the desktop flavor, leaving detected changes never applied on the device. Probe the platform at runtime through OperatingSystem checks instead, which stays correct in every flavor of the assembly.
…ing path The single-flavor path (project single-targeted, or TargetFramework already pinned by the IDE at evaluation) returned without any trace, leaving a workspace pinned to the wrong flavor invisible in the logs. The restriction message also omitted which flavors had been loaded. Every path of FilterHeadProjectTargetFramework now reports the loaded target frameworks, the one the application reported and the ones kept.
When the workspace holds a single flavor of the head project (single- targeted, or TargetFramework pinned by the IDE at evaluation) that does not match the target framework the application reported, updates emitted from it will most likely not apply; surface it as a warning instead of a plain trace. Unresolved flavors keep the neutral trace, a mismatch cannot be asserted for them.
dr1rrb
marked this pull request as ready for review
July 16, 2026 15:05
Jen-Uno
approved these changes
Jul 16, 2026
Contributor
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23791/wasm-skia-net9/index.html |
1 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GitHub Issue: unoplatform/uno-private#2256
Backport of #23790 to
release/stable/6.6(cherry-picks of the three commits).PR Type:
🐞 Bugfix
What changed? 🚀
On skia-rendering Android/iOS (and Mac Catalyst/tvOS) heads, hot reload detects XAML/C# changes but never applies them on the device.
The client computed the platform part of its
RuntimeTargetFrameworkfrom compile-time symbols (__ANDROID__& co.). Those symbols are meaningless on skia-rendering mobile heads: the uno-runtime asset selection swaps the plain-netX.0skia flavor ofUno.UI.RemoteControl.dllin for the per-platform one, so no platform symbol is defined and the client reports thenetX.0-skiapseudo-TFM. The server then restricts the hot-reload workspace to the desktop flavor of the head, and the metadata updates are computed for a target framework the device never runs. The client now probes the platform at runtime throughOperatingSystemchecks, which stays correct in every flavor of the assembly.The server-side workspace target-framework filtering (living in
RoslynTargetFrameworkExtensionson this branch — git followed the rename from theUno.HotReloadsplit on master) also systematically logs the loaded flavors, the reported target framework and the flavors kept, and warns when the single loaded flavor does not match the reported one.Compared to #23790, the unit-test changes are not carried over: the
Uno.HotReload.Testsproject is not part of this branch (the folder only holds an orphaned file not referenced by any project here). The touched projects (Uno.UI.RemoteControl.Server.Processors,Uno.UI.RemoteControl.Skia) build; the behavior is covered by the test suite on master.PR Checklist ✅
Screenshots Compare Test Runresults.