Repository navigation
refactor!: Select runtime assets from the target framework, not a runtime identifier - #24186
Conversation
|
Claude finished @MartinZikmund's task in 8m 35s —— View job Code Review — PR #24186: Clean up runtime identifiers
Verdict: ✅ Ship (one cosmetic nit)This is a well-structured breaking-change PR. The three redundant runtime-identifier properties (
Issues by severity
Nit (inline): Note (no inline): |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24186/wasm-skia-net9/index.html |
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-24186/docs/index.html |
5a29a27 to
5ca88f5
Compare
|
Claude finished @MartinZikmund's task in 10m 35s —— View job Code Review — PR #24186: Clean up runtime identifiers
Verdict: fix-first (one correctness bug, one nit)The overall design is sound and well-executed. Issues by severity
Bug — The rename commit ( <Compile Remove="**\*.skia.cs" Condition="'$(UnoRuntimeFlavor)'!='Generic'" />
<PropertyGroup Condition="'$(UnoRuntimeFlavor)'=='Generic'">
<DefineConstants>$(DefineConstants);__SKIA__;…</DefineConstants>… Nit — The comment describes the old silent-return behavior (what would have gone wrong), not what the code actually does. A reader looking for "why is this an error" reads the opposite message first and must infer the inversion. Inline suggestion provided. Note (carry-over from prior review round) — |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24186/wasm-skia-net9/index.html |
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-24186/docs/index.html |
|
The build 229899 found UI Test snapshots differences: Details
|
There was a problem hiding this comment.
Pull request overview
This PR refactors Uno’s runtime-asset selection so application heads select runtime implementations based on the target framework (via TargetPlatformIdentifier) rather than the legacy UnoRuntimeIdentifier / UnoUIRuntimeIdentifier / UnoWinRTRuntimeIdentifier properties. It introduces UnoHasRuntimeHost (host detection) and UnoRuntimeFlavor (in-repo build-flavor vocabulary), updates the MSBuild tasks that perform runtime replacement/validation, and adds/updates diagnostics and documentation accordingly.
Changes:
- Replace head-driven runtime-identifier properties with
TargetPlatformIdentifier-driven selection andUnoHasRuntimeHostgating. - Introduce
UnoRuntimeFlavor(Generic/Wasm/Reference) for in-repo flavoring and update cross-targeting logic accordingly. - Add/strengthen diagnostics (UNOB0023–UNOB0026), update tests, and update migration/build docs.
Reviewed changes
Copilot reviewed 62 out of 62 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/Uno.WinRT/Uno.WinRT.Wasm.csproj | Switches to UnoRuntimeFlavor=Wasm for the WinRT layer Wasm build. |
| src/Uno.WinRT/Uno.WinRT.Skia.csproj | Switches to UnoRuntimeFlavor=Generic for the shared (“Skia”) WinRT build. |
| src/Uno.WinRT/Uno.WinRT.Reference.csproj | Switches to UnoRuntimeFlavor=Reference for reference builds. |
| src/Uno.UI/Uno.UI.csproj | Switches Uno.UI to UnoRuntimeFlavor=Generic. |
| src/Uno.UI.XamlHost/Uno.UI.XamlHost.csproj | Switches to UnoRuntimeFlavor=Generic and updates an explanatory comment. |
| src/Uno.UI.RuntimeTests/Uno.UI.RuntimeTests.Skia.csproj | Switches runtime tests project to UnoRuntimeFlavor=Generic. |
| src/Uno.UI.Runtime.Skia.X11/buildTransitive/Uno.WinUI.Runtime.Skia.X11.props | Replaces runtime-identifier stamping with UnoHasRuntimeHost=true. |
| src/Uno.UI.Runtime.Skia.Win32/buildTransitive/Uno.WinUI.Runtime.Skia.Win32.props | Replaces runtime-identifier stamping with UnoHasRuntimeHost=true. |
| src/Uno.UI.Runtime.Skia.WebAssembly.Browser/build/Uno.WinUI.Runtime.Skia.WebAssembly.Browser.props | Replaces runtime-identifier stamping with UnoHasRuntimeHost=true for browser heads. |
| src/Uno.UI.Runtime.Skia.MacOS/buildTransitive/Uno.WinUI.Runtime.Skia.MacOS.props | Replaces runtime-identifier stamping with UnoHasRuntimeHost=true. |
| src/Uno.UI.Runtime.Skia.Linux.FrameBuffer/buildTransitive/Uno.WinUI.Runtime.Skia.Linux.FrameBuffer.props | Replaces runtime-identifier stamping with UnoHasRuntimeHost=true. |
| src/Uno.UI.Runtime.Skia.Headless/buildTransitive/Uno.WinUI.Runtime.Skia.Headless.props | Replaces runtime-identifier stamping with UnoHasRuntimeHost=true for headless heads. |
| src/Uno.UI.Runtime.Skia.AppleUIKit/build/Uno.WinUI.Runtime.Skia.AppleUIKit.props | Replaces WinRT/UI runtime identifiers with UnoHasRuntimeHost=true for iOS/tvOS Skia. |
| src/Uno.UI.Runtime.Skia.Android/build/Uno.WinUI.Runtime.Skia.Android.props | Replaces WinRT/UI runtime identifiers with UnoHasRuntimeHost=true for Android Skia. |
| src/Uno.UI.RemoteControl/Uno.UI.RemoteControl.csproj | Switches to UnoRuntimeFlavor=Generic. |
| src/Uno.UI.RemoteControl/HotReload/ClientHotReloadProcessor.Agent.cs | Removes MSBuild-property-based runtime detection; uses OperatingSystem.* runtime checks for desktop/browser/mobile distinctions. |
| src/Uno.UI.FluentTheme/Uno.UI.FluentTheme.csproj | Switches to UnoRuntimeFlavor=Generic. |
| src/Uno.UI.FluentTheme/FluentMerge.targets | Updates conditions from UnoRuntimeIdentifier to UnoRuntimeFlavor. |
| src/Uno.UI.Extras/Uno.UI.Extras.Skia.csproj | Switches to UnoRuntimeFlavor=Generic. |
| src/Uno.UI.Dispatching/Uno.UI.Dispatching.Wasm.csproj | Switches to UnoRuntimeFlavor=Wasm. |
| src/Uno.UI.Dispatching/Uno.UI.Dispatching.Skia.csproj | Switches to UnoRuntimeFlavor=Generic. |
| src/Uno.UI.Dispatching/Uno.UI.Dispatching.Reference.csproj | Switches to UnoRuntimeFlavor=Reference. |
| src/Uno.UI.Dispatching/Uno.UI.Dispatching.netcoremobile.csproj | Attempts to migrate the “generic net target” flavor selection to UnoRuntimeFlavor (but currently sets an invalid value; see inline comments). |
| src/Uno.UI.Composition/Uno.UI.Composition.csproj | Switches to UnoRuntimeFlavor=Generic. |
| src/Uno.Sdk/targets/Uno.Features.targets | Removes stamping of UnoUIRuntimeIdentifier assembly metadata. |
| src/Uno.Sdk/targets/Uno.Common.Desktop.targets | Sets UnoHasRuntimeHost=true for desktop heads. |
| src/Uno.Foundation/Uno.Foundation.Wasm.csproj | Switches to UnoRuntimeFlavor=Wasm. |
| src/Uno.Foundation/Uno.Foundation.Skia.csproj | Switches to UnoRuntimeFlavor=Generic. |
| src/Uno.Foundation/Uno.Foundation.Reference.csproj | Switches to UnoRuntimeFlavor=Reference. |
| src/Uno.Foundation.Runtime.WebAssembly/Uno.Foundation.Runtime.WebAssembly.csproj | Switches to UnoRuntimeFlavor=Wasm. |
| src/Uno.CrossTargetting.targets | Replaces UnoRuntimeIdentifier usage with UnoRuntimeFlavor, and maps flavors to frozen uno-runtime/<tfm>/{skia,webassembly} folder names for overrides. |
| src/Uno.Analyzers/UnoMissingAssemblyAnalyzer.cs | Removes MediaPlayerElement branch and stops reading UnoRuntimeIdentifier from analyzer config. |
| src/Uno.Analyzers.Tests/UnoMissingAssemblyAnalyzerTests.cs | Updates tests to remove MPE coverage and adapt globalconfig assumptions. |
| src/SourceGenerators/Uno.UI.Tasks/RuntimeAssetsValidator/RuntimeAssetsValidatorTask.cs | Removes runtime-id inputs, adds UNOB0026 behavior, and sanitizes stamp values. |
| src/SourceGenerators/Uno.UI.Tasks/RuntimeAssetsSelector/RuntimeAssetsSelectorTask.cs | Refactors selection logic around TargetPlatformIdentifier and explicit WinRT-source rules. |
| src/SourceGenerators/Uno.UI.Tasks/Content/Uno.UI.Tasks.targets | Removes _UnoUnderlyingPlatform inference from runtime identifiers; keeps TPI-based platform detection for Android/UIKit. |
| src/SourceGenerators/Uno.UI.Tasks.Tests/Given_RuntimeEnabledPackage.cs | Reworks tests to drive real runtime-enabled packages and asserts platform-specific WinRT redirection. |
| src/SourceGenerators/Uno.UI.Tasks.Tests/Given_RuntimeAssetsValidatorTask.cs | Updates tests for UNOB0026 stamping behavior and opt-out flag. |
| src/SourceGenerators/Uno.UI.Tasks.Tests/Given_RuntimeAssetsSelectorTask.cs | Updates tests to ensure non-runtime-enabled assets remain untouched across platforms. |
| src/SourceGenerators/Uno.UI.SourceGenerators/RemoteControl/RemoteControlGenerator.cs | Removes capture of obsolete MSBuild properties in generated remote-control plumbing. |
| src/SamplesApp/UnoIslandsSamplesApp.Skia/UnoIslandsSamplesApp.Skia.csproj | Switches to UnoRuntimeFlavor=Generic. |
| src/SamplesApp/UnoIslands.Skia/UnoIslands.Skia.csproj | Switches to UnoRuntimeFlavor=Generic. |
| src/SamplesApp/SamplesApp/SamplesApp.csproj | Attempts to migrate desktop/browserwasm flavor selection to UnoRuntimeFlavor (but currently sets an invalid value; see inline comments). |
| src/SamplesApp/SamplesApp.Skia/SamplesApp.Skia.csproj | Switches to UnoRuntimeFlavor=Generic. |
| src/SamplesApp/SamplesApp.Skia.Generic/SamplesApp.Skia.Generic.csproj | Updates commented-out targets to refer to UnoRuntimeFlavor. |
| src/Directory.Build.targets | Updates Product metadata to use UnoRuntimeFlavor. |
| src/AddIns/Uno.WinUI.SpellChecking/Uno.WinUI.SpellChecking.csproj | Switches to UnoRuntimeFlavor=Generic. |
| src/AddIns/Uno.UI.WebView.Skia.X11/Uno.UI.WebView.Skia.X11.csproj | Switches to UnoRuntimeFlavor=Generic. |
| src/AddIns/Uno.UI.Svg/Uno.UI.Svg.csproj | Switches to UnoRuntimeFlavor=Generic. |
| src/AddIns/Uno.UI.Svg/buildTransitive/Uno.WinUI.Svg.targets | Replaces UnoRuntimeIdentifier==Skia gating with UnoHasRuntimeHost + desktop/headless TPI checks. |
| src/AddIns/Uno.UI.MSAL/Uno.UI.MSAL.Skia.csproj | Switches to UnoRuntimeFlavor=Generic. |
| src/AddIns/Uno.UI.MediaPlayer.Skia.X11/Uno.UI.MediaPlayer.Skia.X11.csproj | Switches to UnoRuntimeFlavor=Generic and hardcodes override output folder to uno-runtime/skia. |
| src/AddIns/Uno.UI.MediaPlayer.Skia.Win32/Uno.UI.MediaPlayer.Skia.Win32.csproj | Switches to UnoRuntimeFlavor=Generic and hardcodes override output folder to uno-runtime/skia. |
| src/AddIns/Uno.UI.Lottie/Uno.UI.Lottie.csproj | Switches to UnoRuntimeFlavor=Generic. |
| src/AddIns/Uno.UI.Lottie/buildTransitive/Uno.WinUI.Lottie.targets | Replaces UnoRuntimeIdentifier==Skia gating with UnoHasRuntimeHost + desktop/headless TPI checks. |
| specs/059-runtime-identifier-cleanup/spec.md | Adds the design/implementation spec documenting rationale, vocabulary, and invariants. |
| doc/articles/uno-development/building-uno-ui.md | Updates build docs to describe new runtime asset selection rules and frozen folder names. |
| doc/articles/uno-build-error-codes.md | Documents new diagnostics UNOB0023–UNOB0026 and updates UNO0007 notes. |
| doc/articles/migrating-to-uno-7.md | Adds migration guidance for removed runtime-identifier head properties and new diagnostics. |
| build/nuget/uno.winui.runtime-replace.targets | Updates runtime replacement/validation targets; adds new diagnostics and warnings; shifts to TPI-driven selector task. |
| .claude/rules/platform-targeting.md | Updates agent guidance: UnoRuntimeFlavor vocabulary and its meaning/constraints. |
| .claude/rules/build-system.md | Updates build-system agent guidance to match the new selector behavior and UnoHasRuntimeHost gating. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24186/wasm-skia-net9/index.html |
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-24186/docs/index.html |
|
The build 236455 found UI Test snapshots differences: Details
|
Removing the shim paragraph took both surrounding blank lines, leaving the table running into the next paragraph. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JVyupWxzgLNY1CVxWnbSec
2.0 classifies heads by target framework and UnoHasRuntimeHost instead of UnoRuntimeIdentifier, which this change stops setting (including the former desktop shim). It also keeps android, ios and browserwasm heads out of the generic Skia kind, and recognises plain netX.0 heads. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JVyupWxzgLNY1CVxWnbSec
|
Claude finished @MartinZikmund's task in 1m 43s —— View job Code Review — PR #24186: Runtime identifier cleanup (re-review after
|
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24186/wasm-skia-net9/index.html |
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-24186/docs/index.html |
|
The build 236465 found UI Test snapshots differences: Details
|
…argets unoplatform#24186 wrapped `$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)'))` in a single-quoted condition operand. MSBuild's condition scanner can't take the nested quotes and fails evaluation with MSB4092, so every Skia app (Lottie is implicit) broke on 7.0.0-dev.1421. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013vMq8j2sEJeY54EXxrzAiE
Master took UNOB0021 for the implicit-package manifest error, and #24186 holds UNOB0023-UNOB0026. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014vRr9HufCgBEVgt1z8J5Ay
Master took UNOB0021 for the implicit-package manifest error, and #24186 holds UNOB0023-UNOB0026. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014vRr9HufCgBEVgt1z8J5Ay
Master took UNOB0021 for the implicit-package manifest error, and #24186 holds UNOB0023-UNOB0026. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014vRr9HufCgBEVgt1z8J5Ay
Master took UNOB0021 for the implicit-package manifest error, and #24186 holds UNOB0023-UNOB0026. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014vRr9HufCgBEVgt1z8J5Ay
Master took UNOB0021 for the implicit-package manifest error, and #24186 holds UNOB0023-UNOB0026. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014vRr9HufCgBEVgt1z8J5Ay
Master took UNOB0021 for the implicit-package manifest error, and #24186 holds UNOB0023-UNOB0026. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014vRr9HufCgBEVgt1z8J5Ay
Master took UNOB0021 for the implicit-package manifest error, and #24186 holds UNOB0023-UNOB0026. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014vRr9HufCgBEVgt1z8J5Ay
Master took UNOB0021 for the implicit-package manifest error, and #24186 holds UNOB0023-UNOB0026. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014vRr9HufCgBEVgt1z8J5Ay
Uno Platform 7.0 (unoplatform/uno#24186) resolves runtime-enabled packages from uno-runtime/<tfm>/generic and uno-runtime/<tfm>/wasm, and fails the app build with UNOB0023 for a package that still ships the old skia/webassembly folders. It also draws every head with a single Skia build: Uno.WinUI 7.0 ships no platform UI assets and no native HTML WebAssembly renderer. - Pack the Skia implementation to both uno-runtime generic and wasm, and keep the reference build in lib/net10.0. - Reference Uno.WinUI 7.0.0-dev.2347, the version pinned by Uno.Sdk 7.0.0-dev.81. This must move to 7.0 GA before release. - Target net10.0 (plus the Windows placeholders) only. The Android, iOS, Mac Catalyst and macOS native-view implementations cannot compile against Uno 7 and are never loaded by Uno 7 heads, so they are removed. - Remove the HTML-renderer SkiaSharp.Views.Uno.WinUI.Wasm project. - Move the Basic, Gallery and SkiaFiddle samples to Uno.Sdk 7.0.0-dev.81 and port them: win/not_win XAML prefixes, Uno.UI.Behaviors.VisibleBoundsPadding, Uno.UI.Runtime.Android hosting, and no duplicate SkiaSharp.Views.WinUI reference in Gallery.
GitHub Issue: closes unoplatform/uno-private#2289 (supersedes the duplicate unoplatform/uno-private#2322)
PR Type:
🏗️ Build or CI related changes — breaking (see below)
What changed? 🚀
UnoRuntimeIdentifier,UnoUIRuntimeIdentifierandUnoWinRTRuntimeIdentifierdecided which runtime assets a head deploys. In 7.0 none of them names a distinction that still exists, and none names a drawing backend — which now matters, because the drawing-backend abstraction (#24153) resolves Skia, WebGPU or a managed engine at run time. A compile-time property spelledSkiais not merely redundant, it is wrong about what it describes.Measured against the code rather than against intent:
UnoUIRuntimeIdentifierhad exactly one value — the literalSkia, at all three sites that set it — and the task required it to equal that to enter two-layer mode at all.UnoWinRTRuntimeIdentifierisTargetPlatformIdentifierrespelled. The AppleUIKit props computed it by callingGetTargetPlatformIdentifier, and the mobile branch only resolveslib/netX.0-<platform>because the value already is that platform.UnoRuntimeIdentifieronly ever heldSkia, meaning "the target platform isdesktopor empty".Selection is now driven by the target framework
The single-layer/two-layer apparatus collapses to one lookup of where the WinRT assemblies come from:
TargetPlatformIdentifierdesktopuno-runtime/<tfm>/generic, same as everything elsebrowserwasmuno-runtime/<tfm>/wasmandroid,ios,tvoslib/netX.0-<platform>The mobile-yes / browser-no asymmetry is the only behaviour the two-layer split still carried, and it is now asserted by a test.
Whether replacement runs at all becomes
UnoHasRuntimeHost— the one fact the target framework genuinely cannot express, since a headless head is a plainnetX.0project indistinguishable by TFM from a class library that must keep NuGet's own selection.The folders are named after the variant
uno-runtime/<tfm>/skiaand.../webassemblybecome.../genericand.../wasm, theUnoRuntimeVariantvalues lowercased. Inside Uno only our nuspecs, the selector task and the packing targets read them, and they ship together. Outside Uno, every published cross-runtime package ships the old names —SkiaSharp.Views.Uno.WinUIamong them — so each has to republish for 7.0. The selector deliberately does not fall back to the old names: such a package was built against 6.x, which 7.0 breaks binary compatibility with, so resolving it would trade a build error naming the package for a crash at startup. A package in the old layout fails with UNOB0023, whose message now says so.A cross-runtime library packed through
UnoRuntimeProjectReference(theMyCrossRuntimeLibtemplate) lands inuno-runtime/generic/uno-runtime/wasmwithout a target framework folder — NuGet adds none to aTfmSpecificPackageFilepath — and is read by theReplaceUnoRuntimeglob; Uno's own packages useuno-runtime/<tfm>/<variant>and are read by the task. Both layouts are covered by target-level tests.SkiaSharp.Views.Uno.WinUIis no longer implicitly referenced. 657c547 removed it in August, but a merge fromfeature/drawing-backend-abstraction(71f2c57) brought it back inside the newskiafeature gate. Uno draws through its ownSKCanvasElement, nothing Uno ships depends on the package, and 4.151.1 is built against pre-rename Uno and ships the old folder names — with the folder rename it would have failed every default template app with UNOB0023. A full audit of that merge found no other reverted master change.Every silent path became loud first
lib/netX.0-<platform>/reference asset on the WinRT redirect path (formerly an uncoded MSB4018 crash), an unsupportedUnoRuntimeVariant, or an unsupported target platform — each naming the package and the path expected; suppressed in design-time builds and byUnoDisableUNOB0023ValidationUno.WinUI.Runtime.Skia.*is detected (it setsUnoUIRuntimeIdentifierinstead ofUnoHasRuntimeHost), a warning otherwise, since an executable test project can legitimately run on the reference assembliesUNOB0023–0026 checked against all 254 open PRs: no other PR claims them.
One property:
UnoRuntimeVariantUnoRuntimeIdentifierbecomesUnoRuntimeVariant, with the valuesGeneric,WasmandReference. It is used both by the projects in this repo (read byUno.CrossTargetting.targets) and by cross-runtime library authors (read by the shippedbuild/nuget/uno.winui.*.targets), and its lowercased value is theuno-runtimefolder. "Variant" is the word the repo already uses for these per-platform builds;SkiabecameGeneric, the term already used for the non-platform-specific build.RuntimeIdentifier(a wasm head setsRuntimeIdentifier=browser-wasmright next to it), and packages versioned separately from Uno testUnoRuntimeIdentifier == 'Skia'.UnoRuntimeIdentifierfor a head any more, and SamplesApp's three Resizetizer workarounds are gone. The pinned Resizetizer already detects Skia from adesktoptarget platform, so Uno.Sdk heads are unaffected; hand-rolled plainnetX.0heads are fixed upstream by uno.resizetizer#378 + wasm ListView is very slow. #391 (classify by target framework andUnoHasRuntimeHost), and this PR bumps Uno.Resizetizer to 2.0.0-dev.14, which contains them (Uno.Sdkpackages.jsonandsrc/Directory.Packages.props). tvOS icon/splash support is tracked in uno.resizetizer#394.UnoRuntimeIdentifierkeeps working (skiabecomesgeneric,webassemblybecomeswasm) and gets UNOB0024 naming the value to use. Removal of the alias and the old validation target name is scheduled for the next major (spec §7).Microsoft.NET.Sdklibrary cannot target the Uno.Sdk'sdesktop/browserwasmplatforms, so this is its only build-time desktop/browser split. TheMyCrossRuntimeLibtemplate now declares its variants; aReferencebuild passed throughUnoRuntimeProjectReferenceis no longer packed into a folder nothing reads.Also fixed along the way: the MediaPlayer add-ins'
UnoNugetOverrideVersionloop wrote to the wrong package id, into anuno-runtime\skiafolder thoselib/-only packages never ship; the unreaduno-runtime/*up-to-date watch and a shadowed duplicate of the cross-runtime pack targets are removed; runtime asset validation is skipped in design-time builds; the hot-reload metadata-update decision now logs every input at Debug.Design rationale, including what was deliberately not done:
specs/059-runtime-identifier-cleanup/spec.md.PR Checklist ✅
Screenshots Compare Test Runresults.Breaking changes
UnoRuntimeIdentifier,UnoUIRuntimeIdentifierandUnoWinRTRuntimeIdentifierno longer affect an application head (UNOB0024), and are no longerCompilerVisiblePropertyitems.uno-runtime/<tfm>/genericanduno-runtime/<tfm>/wasm(wereskia/webassembly);UnoRuntimeProjectReferencepacksuno-runtime/generic/wasm. Cross-runtime libraries setUnoRuntimeVariant;UnoRuntimeIdentifieris a deprecated alias (UNOB0024).UnoRuntimeGetTargetPathreturnsUnoRuntimeVariantmetadata.SkiaSharp.Views.Uno.WinUIis no longer implicitly referenced by the Uno.Sdk; apps usingSKXamlCanvas/SKSwapChainPanelreference it explicitly (and need a 7.0 build of it).Uno.WinUI.Runtime.Skia.*next to a 7.0Uno.WinUIis now a build error (UNOB0025).UnoRuntimeIdentifier=Skia. The Uno.Sdk now pins Uno.Resizetizer 2.0, which no longer recognises 5.x shared-project heads.UnoUIRuntimeIdentifierassembly-metadata attribute. The reader is kept and still rejects assemblies built for a native renderer.RuntimeAssetsSelectorTask_v0no longer accepts the three identifier parameters; a library's variant is passed asLibraryRuntimeVariant.UNO0007is retired.First-party follow-ups (tracked under the 7.0 epic)
SkiaSharp.Views.Uno.WinUIwithgeneric/wasmfoldersuno.maui.renderer: verification scripts + dropUnoUIRuntimeIdentifierUnoRuntimeIdentifierglobs.wasm.cs/ reference-gated codeValidation
Uno.UI.Tasks.Tests85/85 (strict build). New since the first round:Given_RuntimeReplaceTargetsruns the shippeduno.winui.runtime-replace.targets/cross-runtime.targetsthroughdotnet msbuildover fake packages: variant + alias mapping, bothuno-runtimelayouts, UNOB0023 and its suppressions, the Reference skip, UNOB0024, UNOB0025 error/warning, whichUnoRuntimeProjectReferencebuilds get packed, and the old validation target name firing a consumer hook.Given_UnoRuntimeLayoutpins every nuspec'suno-runtimefolders to the variants and checkswasmships the same files asgeneric.Given_RuntimeHostPackagespinsUnoHasRuntimeHoston every runtime host, and that none sets a retired runtime identifier.skiafolder), the cross-runtime layout test (against the glob-less targets) and the new selector errors.Uno.WinRT× {Generic, Wasm, Reference},Uno.UI,Uno.UI.Composition,Uno.UI.FluentTheme,Uno.UI.Extras,Uno.UI.Svg,Uno.UI.Dispatching.Wasm,Uno.Foundation.Reference,Uno.UI.RemoteControl— and each variant verified to still resolve distinct symbols (__SKIA__/__WASM__/__NETSTD_REFERENCE__).dotnet pack+ consume from real heads. In-repo builds useProjectReference, so the package-reading path is only exercised by the target-level tests above; one consume from this PR's CI packages is still worth doing before merge.Reviewed twice by the eight-lens
/review-panel; the second round's findings are addressed one per commit on top of0ca32df26e5.🤖 Generated with Claude Code
https://claude.ai/code/session_01JVyupWxzgLNY1CVxWnbSec