Repository navigation
refactor(build)!: Fold UI-layer Reference flavor into Skia - #23999
Conversation
|
Claude finished @MartinZikmund's task in 6m 10s —— View job PR Review — refactor(build)!: Fold UI-layer Reference flavor into Skia
Verdict: ship (with one question)The refactoring is mechanically correct. The core invariant — that the Reference build was identical to the Skia build for the UI layer once native WASM rendering was removed — is sound, and removing the redundant layer is the right move. Findings: 3 issues (1 medium, 2 low)
Medium — Validation coverage reduction
Low — Leftover empty comment sectionsSeveral nuspec files have dead Low — Hardcoded SkiaSharp/HarfBuzzSharp versions
What was verified
|
|
Given these changes, we should actually be able to drop the |
There was a problem hiding this comment.
Pull request overview
This PR removes the UI-layer “Reference” flavor projects/stubs and updates build/packaging so the UI layer (Uno.UI, Uno.UI.Composition, and dependent add-ins) ships the Skia build directly under lib/ (no uno-runtime folder), while keeping bait-and-switch for the WinRT-layer assemblies (Uno, Uno.Foundation, Uno.UI.Dispatching). It also introduces/moves a sizeable amount of Skia-side implementation code (composition, text formatting, Vulkan interop) that previously lived behind Reference-only stubs.
Changes:
- Fold/remove UI-layer
*.Reference.csprojprojects and*.reference.csstubs; update solution/filters/tests to reference Skia heads instead. - Update NuGet packaging + override-cache paths from
uno-runtime/...tolib/<tfm>for UI-layer packages (and adjust API comparer to validateUno.WinRTinstead ofUno.WinUI). - Add/move Skia implementations for composition rendering, text formatting/font fallback, and Vulkan interop scaffolding.
Reviewed changes
Copilot reviewed 81 out of 172 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/Uno.UI/Vulkan/VulkanImageInfo.cs | Adds Vulkan image metadata struct for Skia Vulkan interop. |
| src/Uno.UI/Vulkan/VulkanException.cs | Adds Vulkan error wrapper + ThrowOnError helper. |
| src/Uno.UI/Vulkan/VulkanBindings.cs | Adds Vulkan helper constants/version composition. |
| src/Uno.UI/Vulkan/UnmanagedInterop/VulkanProcHelper.cs | Adds delegate loader for Vulkan proc addresses. |
| src/Uno.UI/Vulkan/UnmanagedInterop/VulkanGlobalApi.cs | Adds global Vulkan API delegate bindings. |
| src/Uno.UI/Vulkan/UnmanagedInterop/Utf8BufferArray.cs | Adds unmanaged UTF-8 string array helper for interop. |
| src/Uno.UI/Vulkan/IVulkanPlatformSurfaceFactory.cs | Adds platform surface creation abstraction for Vulkan. |
| src/Uno.UI/Vulkan/IVulkanPlatformGraphicsContext.cs | Adds platform graphics context surface abstractions. |
| src/Uno.UI/Vulkan/IVulkanDevice.cs | Adds minimal instance/device interfaces for Vulkan. |
| src/Uno.UI/Vulkan/Interop/VulkanSemaphore.cs | Adds Vulkan semaphore wrapper types. |
| src/Uno.UI/Vulkan/Interop/VulkanMemoryHelper.cs | Adds helper for memory type selection + layout transitions. |
| src/Uno.UI/Vulkan/Interop/VulkanKhrSurface.cs | Adds KHR surface wrapper (format/support queries). |
| src/Uno.UI/Vulkan/Interop/VulkanFence.cs | Adds fence wrapper with wait/signaled helpers. |
| src/Uno.UI/Vulkan/Interop/VulkanDevice.cs | Adds VulkanDevice wrapper with locking semantics. |
| src/Uno.UI/Vulkan/Interop/VulkanDevice.Create.cs | Adds physical-device selection + device creation logic. |
| src/Uno.UI/Vulkan/Interop/VulkanCommandBufferPool.cs | Adds command buffer pool management. |
| src/Uno.UI/Vulkan/Interop/VulkanCommandBuffer.cs | Adds command buffer wrapper + submit logic. |
| src/Uno.UI/Vulkan/Interop/Utf8Buffer.cs | Adds pinned UTF-8 buffer helper for interop. |
| src/Uno.UI/Uno.UI.sln | Removes Uno.UI.Reference project from solution. |
| src/Uno.UI/Uno.UI.Skia.csproj | Updates references/override-cache output layout to lib/. |
| src/Uno.UI/Uno.UI.Reference.csproj | Removes UI-layer Reference project. |
| src/Uno.UI/UI/Xaml/Window/Native/NativeWindowWrapper.reference.cs | Removes Reference-only native window wrapper stub. |
| src/Uno.UI/UI/Xaml/Window/Native/Factory/NativeWindowFactory.others.cs | Removes non-Skia stub factory path. |
| src/Uno.UI/UI/Xaml/UIElementExtensions.reference.cs | Removes Reference-only empty extension class. |
| src/Uno.UI/UI/Xaml/UIElementAccessibilityHelper.cs | Adds external accessibility hooks for UIElement child changes. |
| src/Uno.UI/UI/Xaml/UIElement.ThemeShadow.cs | Adds ThemeShadow drop-shadow computation for Skia visuals. |
| src/Uno.UI/UI/Xaml/UIElement.reference.cs | Removes Reference-only UIElement implementation/stubs. |
| src/Uno.UI/UI/Xaml/Shapes/Shape.reference.cs | Removes Reference-only stub change handlers. |
| src/Uno.UI/UI/Xaml/Media/Projection.reference.cs | Removes Reference-only stub. |
| src/Uno.UI/UI/Xaml/Media/LineGeometry.cs | Adds Skia path generation for LineGeometry. |
| src/Uno.UI/UI/Xaml/Media/FillRuleExtensions.cs | Adds FillRule → Skia fill-type conversion. |
| src/Uno.UI/UI/Xaml/Media/CompositionTarget.reference.cs | Removes Reference-only CompositionTarget.Rendering stub. |
| src/Uno.UI/UI/Xaml/Media/Animation/Timeline.animation.reference.cs | Removes Reference-only frame-report stub. |
| src/Uno.UI/UI/Xaml/Media/Animation/DoubleAnimationUsingKeyFrames.reference.cs | Removes Reference-only frame-report stub. |
| src/Uno.UI/UI/Xaml/Media/Animation/ColorAnimationUsingKeyFrames.reference.cs | Removes Reference-only OnFrame stub. |
| src/Uno.UI/UI/Xaml/Media/Animation/Animators/AnimatorFactory.reference.cs | Removes Reference-only animator factory stub. |
| src/Uno.UI/UI/Xaml/Media/AcrylicBrush/AcrylicBrush.reference.cs | Removes Reference-only connected/disconnected stubs. |
| src/Uno.UI/UI/Xaml/Internal/InputManager.Keyboard.cs | Adds KeyboardManager processing and routing logic. |
| src/Uno.UI/UI/Xaml/Input/PointerRoutedEventArgs.reference.cs | Removes Reference-only throwing stub method. |
| src/Uno.UI/UI/Xaml/Input/FocusManager.reference.cs | Removes Reference-only FocusNative stub. |
| src/Uno.UI/UI/Xaml/FrameworkElement.reference.cs | Removes Reference-only FrameworkElement stubs/events. |
| src/Uno.UI/UI/Xaml/FrameworkElement.Interface.reference.cs | Removes Reference-only interface implementation/stubs. |
| src/Uno.UI/UI/Xaml/FrameworkElement.Interface.cs | Adds non-reference FrameworkElement interface surface (with NotImplemented RenderPhase). |
| src/Uno.UI/UI/Xaml/Documents/TextFormatting/Unicode.cs | Adds line-break/word-break helpers for text formatting. |
| src/Uno.UI/UI/Xaml/Documents/TextFormatting/Segment.cs | Adds Segment model for text shaping/wrapping. |
| src/Uno.UI/UI/Xaml/Documents/TextFormatting/RenderSegmentSpan.cs | Adds render-span record for segments. |
| src/Uno.UI/UI/Xaml/Documents/TextFormatting/IBlock.cs | Adds block abstraction for inline-containing text blocks. |
| src/Uno.UI/UI/Xaml/Documents/TextFormatting/GlyphInfo.cs | Adds glyph record for shaping results. |
| src/Uno.UI/UI/Xaml/Documents/TextFormatting/FontDetails.cs | Adds SKFont/HarfBuzz font shaping details + memoization. |
| src/Uno.UI/UI/Xaml/Documents/IParsedText.cs | Adds parsed-text rendering/query interface. |
| src/Uno.UI/UI/Xaml/Documents/FontFallbackService.cs | Adds Noto-based font fallback service implementation. |
| src/Uno.UI/UI/Xaml/Controls/WebView/Core/CoreWebView2.unsupported.cs | Removes non-Skia stub for native webview template access. |
| src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.reference.cs | Removes Reference-only TextBox selection/pointer stubs. |
| src/Uno.UI/UI/Xaml/Controls/TextBox/ITextBoxNotificationsProviderSingleton.cs | Adds notification provider singleton interface. |
| src/Uno.UI/UI/Xaml/Controls/TextBox/Extensions/IOverlayTextBoxViewExtension.cs | Adds overlay textbox view extension interface. |
| src/Uno.UI/UI/Xaml/Controls/TextBox/Extensions/IOverlayTextBoxView.cs | Adds overlay textbox view abstraction (events/selection/etc.). |
| src/Uno.UI/UI/Xaml/Controls/TextBox/Extensions/ImeCompositionEventArgs.cs | Adds IME composition event args. |
| src/Uno.UI/UI/Xaml/Controls/TextBox/Extensions/IImeTextBoxExtension.cs | Adds IME extension contract for TextBox. |
| src/Uno.UI/UI/Xaml/Controls/TextBlock/TextVisual.cs | Adds TextVisual to paint TextBlock content via composition. |
| src/Uno.UI/UI/Xaml/Controls/TextBlock/TextBlock.reference.cs | Removes Reference-only TextBlock stubs. |
| src/Uno.UI/UI/Xaml/Controls/ScrollViewer/ScrollViewer.reference.cs | Removes Reference-only stubs. |
| src/Uno.UI/UI/Xaml/Controls/ScrollContentPresenter/ScrollContentPresenter.reference.cs | Removes Reference-only ScrollContentPresenter API stubs. |
| src/Uno.UI/UI/Xaml/Controls/Primitives/CaretWithStemAndThumb.cs | Adds touch-selection gripper implementation. |
| src/Uno.UI/UI/Xaml/Controls/ListViewBase/ListViewBase.reference.cs | Removes Reference-only empty type. |
| src/Uno.UI/UI/Xaml/Controls/Image/Image.reference.cs | Removes Reference-only stubs. |
| src/Uno.UI/UI/Xaml/Controls/FlipView/FlipView.reference.cs | Removes Reference-only override stubs. |
| src/Uno.UI/UI/Xaml/Controls/DatePicker/ISkiaNativeTimePickerProviderExtension.cs | Adds Skia native time picker provider interface. |
| src/Uno.UI/UI/Xaml/Controls/DatePicker/ISkiaNativeDatePickerProviderExtension.cs | Adds Skia native date picker provider interface. |
| src/Uno.UI/UI/Xaml/Controls/ContentControl/ContentControl.reference.cs | Removes Reference-only stubs. |
| src/Uno.UI/UI/Xaml/BorderHelper.cs | Adds BorderVisual update helpers under UNO_HAS_BORDER_VISUAL. |
| src/Uno.UI/UI/Xaml/Application.reference.cs | Removes Reference-only Application start stub. |
| src/Uno.UI/UI/ViewManagement/InputPane/InputPane.others.cs | Removes non-Skia InputPane stubs. |
| src/Uno.UI/Rendering/IRenderer.cs | Adds minimal renderer abstraction (background color). |
| src/Uno.UI/NativeElementHosting/BrowserHtmlElement.reference.cs | Removes Reference-only DOM hosting stubs. |
| src/Uno.UI/Hosting/XamlRootMap.cs | Adds XamlRoot ↔ host mapping registry. |
| src/Uno.UI/Graphics/SKCanvasVisual.cs | Adds SKCanvas-backed visual implementation. |
| src/Uno.UI/Graphics/SKCanvasElementFactory.cs | Adds SKCanvasVisual factory for creating visuals. |
| src/Uno.UI/Extensions/ViewExtensions.reference.cs | Removes Reference-only view extension stubs. |
| src/Uno.UI/Extensions/FontWeightExtensions.cs | Adds FontWeight → Skia weight conversion. |
| src/Uno.UI/Extensions/FontStyleExtensions.cs | Adds FontStyle/Stretch → Skia conversions + variable width axis mapping. |
| src/Uno.UI.XamlHost/Uno.UI.XamlHost.Reference.csproj | Removes XamlHost Reference project. |
| src/Uno.UI.XamlHost/buildTransitive/Uno.WinUI.XamlHost.props | Removes runtime-enabled package registration props. |
| src/Uno.UI.Toolkit/Uno.UI.Toolkit.Reference.csproj | Removes Toolkit Reference project. |
| src/Uno.UI.slnx | Removes Reference projects and updates Skia runtime dependencies. |
| src/Uno.UI.RemoteControl/Uno.UI.RemoteControl.Skia.csproj | Updates override-cache output path to lib/. |
| src/Uno.UI.RemoteControl/Uno.UI.RemoteControl.Reference.csproj | Removes RemoteControl Reference project. |
| src/Uno.UI.RemoteControl/buildTransitive/Uno.WinUI.DevServer.targets | Removes UnoRuntimeEnabledPackage registration for DevServer. |
| src/Uno.UI.FluentTheme/Uno.UI.FluentTheme.Reference.csproj | Removes FluentTheme Reference project. |
| src/Uno.UI.FluentTheme.v2/Uno.UI.FluentTheme.v2.Reference.csproj | Removes FluentTheme.v2 Reference project. |
| src/Uno.UI.FluentTheme.v1/Uno.UI.FluentTheme.v1.Reference.csproj | Removes FluentTheme.v1 Reference project. |
| src/Uno.UI.Composition/Uno.UI.Composition.Reference.csproj | Removes Composition Reference project. |
| src/Uno.UI.Composition/Helpers/D2D1Helpers.cs | Adds Direct2D→Skia helpers. |
| src/Uno.UI.Composition/Composition/VisualCollection.reference.cs | Removes Reference-only partials for VisualCollection. |
| src/Uno.UI.Composition/Composition/VisualAccessibilityHelper.cs | Adds external accessibility hook for visuals. |
| src/Uno.UI.Composition/Composition/Visual.reference.cs | Removes Reference-only Visual partial. |
| src/Uno.UI.Composition/Composition/Uno/Visual.PaintingSession.cs | Adds Visual painting session wrapper (Skia). |
| src/Uno.UI.Composition/Composition/Uno/UnoSKRunBufferInternal.cs | Adds internal SkiaSharp run buffer interop struct. |
| src/Uno.UI.Composition/Composition/Uno/UnoSkiaApi.cs | Adds low-level Skia native API imports + resolver. |
| src/Uno.UI.Composition/Composition/Uno/ISkiaSurface.cs | Adds ISkiaSurface contract for painting surfaces. |
| src/Uno.UI.Composition/Composition/Uno/ISkiaCompositionSurfaceProvider.cs | Adds SkiaCompositionSurface provider interface. |
| src/Uno.UI.Composition/Composition/SkiaGeometrySource2D.cs | Adds Skia geometry source wrapper implementing IGeometrySource2D. |
| src/Uno.UI.Composition/Composition/SingleFrameProvider.cs | Adds single-frame provider with memory pressure tracking. |
| src/Uno.UI.Composition/Composition/ShadowState.cs | Adds drop-shadow paint caching state. |
| src/Uno.UI.Composition/Composition/IFrameProvider.cs | Adds frame provider contract for composition surfaces. |
| src/Uno.UI.Composition/Composition/CompositionBrushWrapper.cs | Adds wrapper brush that forwards paint/invalidation semantics. |
| src/Uno.UI.Composition/Composition/ColorBrushTransitionState.cs | Adds transition state record for color brush transitions. |
| src/Uno.UI.Composition/Composition/AnimatedImageFrameProvider.cs | Adds animated frame provider with timer-driven invalidation. |
| src/Uno.UI.Composition/Composition/AlphaMaskSurface.cs | Adds alpha-mask surface implementation for visuals. |
| src/Uno.UI-Skia-only.slnf | Removes Reference projects from Skia-only filter. |
| src/Uno.UI-RemoteControl-Only.slnf | Removes Reference projects from remote-control-only filter. |
| src/Uno.UI-Reference-Only.slnf | Updates reference-only filter to WinRT-layer projects only. |
| src/Uno.ReferenceImplComparer/Program.cs | Skips validation when packages have no reference/runtime pair; adjusts paths. |
| src/Uno.Foundation/Uno.Foundation.csproj | Removes (legacy) Uno.Foundation Skia project file. |
| src/SourceGenerators/XamlGenerationTests/XamlGenerationTests.csproj | Switches tests to reference Skia heads instead of Reference projects. |
| src/SourceGenerators/XamlGenerationTests/PropertiesTest.xaml.cs | Removes Apple UIKit conditional usage from test scaffold. |
| src/SourceGenerators/XamlGenerationTests.Core/XamlGenerationTests.Core.csproj | Switches test core to reference Skia heads instead of Reference projects. |
| src/SamplesApp/SamplesApp.Skia/SamplesApp.Skia.csproj | Switches MSAL reference from Reference to Skia project. |
| src/Directory.Build.props | Removes Reference projects from adjusted output list. |
| src/AddIns/Uno.WinUI.Graphics2DSK/Uno.WinUI.Graphics2DSK.Crossruntime.csproj | Switches to reference Uno.UI.Skia instead of Uno.UI.Reference. |
| src/AddIns/Uno.UI.Svg/Uno.UI.Svg.Skia.csproj | Updates override-cache output path to lib/. |
| src/AddIns/Uno.UI.Svg/Uno.UI.Svg.Reference.csproj | Removes Svg Reference project. |
| src/AddIns/Uno.UI.Svg/buildTransitive/Uno.WinUI.Svg.targets | Removes UnoRuntimeEnabledPackage registration. |
| src/AddIns/Uno.UI.MSAL/Uno.UI.MSAL.Skia.csproj | Updates override-cache output path to lib/. |
| src/AddIns/Uno.UI.MSAL/Uno.UI.MSAL.Reference.csproj | Removes MSAL Reference project. |
| src/AddIns/Uno.UI.MSAL/buildTransitive/Uno.WinUI.MSAL.targets | Removes UnoRuntimeEnabledPackage registration targets. |
| src/AddIns/Uno.UI.Lottie/Uno.UI.Lottie.Skia.csproj | Updates override-cache output path to lib/. |
| src/AddIns/Uno.UI.Lottie/Uno.UI.Lottie.Reference.csproj | Removes Lottie Reference project. |
| src/AddIns/Uno.UI.Lottie/buildTransitive/Uno.WinUI.Lottie.targets | Removes UnoRuntimeEnabledPackage registration. |
| specs/043-drop-native-rendering/spec.md | Updates spec with amended UI-layer packaging layout. |
| doc/articles/uno-development/building-uno-ui.md | Updates docs: reference assemblies now primarily WinRT-layer only. |
| doc/articles/features/using-skia-rendering.md | Updates docs: UI layer compiles/runs against same Skia assemblies. |
| build/Uno.UI.Build.csproj | Validates API comparer against Uno.WinRT package. |
| build/nuget/Uno.WinUI.XamlHost.nuspec | Ships XamlHost Skia assembly in lib/ (no uno-runtime). |
| build/nuget/uno.winui.win.targets | Removes UnoRuntimeEnabledPackage list used for WPF swapping. |
| build/nuget/Uno.WinUI.Svg.nuspec | Ships Svg Skia assembly in lib/ (no uno-runtime). |
| build/nuget/Uno.WinUI.MSAL.nuspec | Ships MSAL Skia assembly in lib/ (no uno-runtime). |
| build/nuget/Uno.WinUI.Lottie.nuspec | Ships Lottie Skia assembly in lib/ (no uno-runtime). |
| build/nuget/Uno.WinUI.DevServer.nuspec | Ships RemoteControl Skia assembly in lib/ (no uno-runtime). |
| build/nuget/uno.winui.common.targets | Removes UnoRuntimeEnabledPackage registration for UI layer (comment/docs). |
| build/filters/Uno.UI-top-projects-for-sync-gen.slnf | Removes Reference project from sync-gen filter. |
| build/filters/Uno.UI-packages-skia.slnf | Removes Reference projects from packages-skia filter. |
| build/filters/Uno.UI-packages-reference.slnf | Removes UI-layer Reference projects from packages-reference filter. |
| build/filters/Uno.UI-packages-all.slnf | Removes UI-layer Reference projects from packages-all filter. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23999/wasm-skia-net9/index.html |
|
The build 226353 found UI Test snapshots differences: Details
|
|
Claude finished @MartinZikmund's task in 11m 35s —— View job PR Review — refactor(build)!: Fold UI-layer Reference flavor into Skia
Verdict: ship (one open question on screenshots)The refactoring is mechanically sound. The core invariant is correct: once native WASM rendering was removed, the Reference and Skia UI-layer assemblies were identical, making the two-head packaging redundant. The cleanup is the right call. The Issues
Screenshot failures need explanation before mergeCI reports 74 Linux and 284 Windows screenshot differences. The prior What was verified
|
🤖 Addressed PR comments up to this point
|
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23999/wasm-skia-net9/index.html |
|
The build 226378 found UI Test snapshots differences: Details
|
The Reference flavor is an API-narrowing device, not a TFM-neutrality device: NetReferencePreviousAndCurrent and NetSkiaPreviousAndCurrent both expand to net10.0;net11.0, so the Skia heads are already TFM-agnostic. With native WASM rendering gone, Uno.WinUI ships no `webassembly` runtime folder, leaving the UI-layer swap with a single possible destination. Fold the 11 UI-layer Reference heads into Skia. Uno.UWP, Uno.Foundation and Uno.UI.Dispatching keep their Reference head: Uno.WinRT.nuspec still ships both `webassembly` and `skia` runtime folders for them, and they are the union compile surface that lets Uno.UI stay platform-agnostic. That boundary is the existing trio in RuntimeAssetsSelectorTask.IsWinRTAssembly. Part of #8339 Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01BzCHZT7CCeqoAQhvJp4F2P
lib/net10.0 and lib/net11.0 are now fed from the *.Skia bins and the uno-runtime/<tfm>/skia folder is dropped from Uno.WinUI: with the UI-layer Reference heads gone there is only one assembly left to ship. lib/ gains the pdbs and XML documentation the runtime folder used to carry exclusively, so symbols and IntelliSense docs now reach consumers. Uno.UI and Uno.WinUI are removed from UnoRuntimeEnabledPackage, so RuntimeAssetsSelectorTask no longer processes the package at all. This avoids the hazard where an uno-runtime folder that exists but lacks the <tfm>/skia subfolder makes the task strip runtime items and add nothing back. SkiaSharp and HarfBuzzSharp are declared on the net10.0/net11.0 dependency groups: Uno.UI.Composition binds SkiaSharp and Uno.UI binds HarfBuzzSharp, and without the dependency edge consumers hit CS0012 on any SkiaSharp-typed member. Versions match the literals already used by Graphics2DSK, Lottie and Svg. Uno.ReferenceImplComparer is repointed at Uno.WinRT rather than removed: that package still ships both the skia and webassembly flavors against a Reference lib/, so the reference-subset-of-runtime check still has real work to do. It also now skips target frameworks with no reference/runtime pair instead of throwing DirectoryNotFoundException. Part of #8339 Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01BzCHZT7CCeqoAQhvJp4F2P
Lottie, Svg, MSAL, XamlHost and DevServer fed lib/ from *.Reference bins that no longer exist. Repoint them at the *.Skia bins and drop their uno-runtime/<tfm>/skia entries, matching Uno.WinUI. Lottie, Svg and XamlHost previously shipped pdbs (and Lottie/Svg an XML doc) only into the runtime folder, so the lib/ globs are widened to keep that payload rather than silently dropping it. The MSAL and XamlHost buildTransitive files existed solely to declare UnoRuntimeEnabledPackage and are removed along with their nuspec entries; MSAL shipped its folder via a wildcard that would otherwise match nothing and fail the pack with NU5019. UnoNugetOverrideVersion copy targets now land in lib/<tfm>, which is where consumers resolve these assemblies from. Part of #8339 Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01BzCHZT7CCeqoAQhvJp4F2P
Uno.UI compiled against Uno.Foundation.Skia while Uno.UI.Composition compiled against Uno.Foundation.Reference, though both emit AssemblyName=Uno.Foundation and both reference Uno.Reference for the WinRT surface. Align Uno.UI on the Reference edge so the UI layer consistently compiles against the union surface rather than the desktop flavor. Delete src/Uno.Foundation/Uno.Foundation.csproj, which has no references anywhere in the tree and appears in no nuspec. Update the two documentation pages that describe the bait-and-switch to scope it to the WinRT layer, and record the narrowed packaging layout as an amendment on spec 043, which prescribed the previous one. The .reference.cs convention and the Uno.UI.UnitTests Skia-override block are deliberately left in place: UnoRuntimeIdentifier=Reference is still meaningful for the WinRT trio and for third-party cross-runtime libraries, and the test host still needs the real Skia dispatcher partials. Part of #8339 Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01BzCHZT7CCeqoAQhvJp4F2P
PropertiesTest.xaml.cs opened with a bare #elif __APPLE_UIKIT__ and no preceding #if, left behind when the native branch was stripped. CS1028 is a lexical error, so the file failed to compile under every symbol set. XamlGenerationTests still does not build: three pre-existing UXAML0001 errors in GlobalStaticResources02.xaml and VSM.Test.xaml reproduce identically on the base commit against Uno.UI.Reference, and are tracked separately. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01BzCHZT7CCeqoAQhvJp4F2P
WinAppSDK sync generator drift detected on
|
|
Pushed GitHub does not re-trigger workflows for commits pushed by the default bot, so the WinAppSDK Sync Generator Check will not automatically re-run. To turn it green, push any additional commit (for example |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23999/wasm-skia-net9/index.html |
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23999/wasm-skia-net9/index.html |
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-23999/docs/index.html |
|
The build 226830 found UI Test snapshots differences: Details
|
aff73c4
into
feature/breakingchanges
PR #23999 folded the UI-layer Reference flavor into Skia and merged every `.skia.cs` partial into its base file, so `Uno.UI` now carries none of either suffix. These files were added before that landed. - `.skia.cs` dropped from the six new TextBox/PasswordBox/TextBoxCore partials; `PasswordBox.skia.cs` becomes `PasswordBox.Properties.cs`, mirroring `TextBox.Properties.cs`, since it holds public DPs rather than platform code - the engine becomes `TextBoxCore.Input.cs` rather than folding into `TextBoxCore.cs`: the latter is `#nullable enable` and the engine is nullable-oblivious, so merging them would put 1881 unannotated lines under an annotated context and surface 40 latent warnings unrelated to this change - `TextBoxCore.reference.cs` is deleted; `Uno.UI.csproj` is Skia-only, so a `.reference.cs` file no longer compiles anywhere, exactly as #23999 did with `TextBox.reference.cs` Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
CI's code-style analyzer flagged IDE0051 on TextBoxCore.OnKeyDownNonSkia. It is genuinely unreachable: OnPostKeyDown only called it from a `#else` branch, and Uno.UI.csproj is Skia-only since #23999, so `__SKIA__` is defined for every target framework it builds. Deletes the method and collapses OnPostKeyDown to forward directly. Also drops a comment describing TextBoxCore.skia.cs and the Reference flavor, neither of which exists after #23999. Local builds could not have caught this: the ten-build gate passes UnoFastDevBuild=true, which disables EnforceCodeStyleInBuild, and dropping that flag is not sufficient either -- a net10.0 build with it removed still emits zero IDE/CA diagnostics. CI's failing configuration is net11.0, which global.json's allowPrerelease:false makes unselectable here. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
PR #23999 folded the UI-layer Reference flavor into Skia and merged every `.skia.cs` partial into its base file, so `Uno.UI` now carries none of either suffix. These files were added before that landed. - `.skia.cs` dropped from the six new TextBox/PasswordBox/TextBoxCore partials; `PasswordBox.skia.cs` becomes `PasswordBox.Properties.cs`, mirroring `TextBox.Properties.cs`, since it holds public DPs rather than platform code - the engine becomes `TextBoxCore.Input.cs` rather than folding into `TextBoxCore.cs`: the latter is `#nullable enable` and the engine is nullable-oblivious, so merging them would put 1881 unannotated lines under an annotated context and surface 40 latent warnings unrelated to this change - `TextBoxCore.reference.cs` is deleted; `Uno.UI.csproj` is Skia-only, so a `.reference.cs` file no longer compiles anywhere, exactly as #23999 did with `TextBox.reference.cs` Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
CI's code-style analyzer flagged IDE0051 on TextBoxCore.OnKeyDownNonSkia. It is genuinely unreachable: OnPostKeyDown only called it from a `#else` branch, and Uno.UI.csproj is Skia-only since #23999, so `__SKIA__` is defined for every target framework it builds. Deletes the method and collapses OnPostKeyDown to forward directly. Also drops a comment describing TextBoxCore.skia.cs and the Reference flavor, neither of which exists after #23999. Local builds could not have caught this: the ten-build gate passes UnoFastDevBuild=true, which disables EnforceCodeStyleInBuild, and dropping that flag is not sufficient either -- a net10.0 build with it removed still emits zero IDE/CA diagnostics. CI's failing configuration is net11.0, which global.json's allowPrerelease:false makes unselectable here. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
PR #23999 folded the UI-layer Reference flavor into Skia and merged every `.skia.cs` partial into its base file, so `Uno.UI` now carries none of either suffix. These files were added before that landed. - `.skia.cs` dropped from the six new TextBox/PasswordBox/TextBoxCore partials; `PasswordBox.skia.cs` becomes `PasswordBox.Properties.cs`, mirroring `TextBox.Properties.cs`, since it holds public DPs rather than platform code - the engine becomes `TextBoxCore.Input.cs` rather than folding into `TextBoxCore.cs`: the latter is `#nullable enable` and the engine is nullable-oblivious, so merging them would put 1881 unannotated lines under an annotated context and surface 40 latent warnings unrelated to this change - `TextBoxCore.reference.cs` is deleted; `Uno.UI.csproj` is Skia-only, so a `.reference.cs` file no longer compiles anywhere, exactly as #23999 did with `TextBox.reference.cs` Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
CI's code-style analyzer flagged IDE0051 on TextBoxCore.OnKeyDownNonSkia. It is genuinely unreachable: OnPostKeyDown only called it from a `#else` branch, and Uno.UI.csproj is Skia-only since #23999, so `__SKIA__` is defined for every target framework it builds. Deletes the method and collapses OnPostKeyDown to forward directly. Also drops a comment describing TextBoxCore.skia.cs and the Reference flavor, neither of which exists after #23999. Local builds could not have caught this: the ten-build gate passes UnoFastDevBuild=true, which disables EnforceCodeStyleInBuild, and dropping that flag is not sufficient either -- a net10.0 build with it removed still emits zero IDE/CA diagnostics. CI's failing configuration is net11.0, which global.json's allowPrerelease:false makes unselectable here. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The spec was written as item 1 of the work and never updated, so it still described the pre-#23999 tree and an unstarted implementation. Corrections: - The suffixed files it named (TextBox.skia.cs, .IME.skia.cs, .pointers.skia.cs, .reference.cs) no longer exist, and Uno.UI.Skia / Uno.UI.Reference are now a single Skia-only Uno.UI. - Affected-files list replaced with what actually landed, including the six sites verified as no-ops and the samples that needed no change. - PackageDiffIgnore.xml is NOT modified: the one reported break was PasswordBox.get_SelectionFlyout() being emitted virtual because the public property implicitly implemented ITextBoxHost. Forwarding the member explicitly restores binary compatibility, so no ignore entry. - Records the behaviour changes found on the way (spell-check on masked text, MaxLength coercion, TextBlock.OwningTextBox), the partial void / override silent-failure audits, why the chrome/engine split was abandoned, and the visual verification. - Validation status goes from "Not started" to the final gate results. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The drawing-backend merges re-split Ellipse/Line/Path/Polygon/Polyline/ Rectangle/Shape into base .cs + .skia.cs pairs that unoplatform#24001 (skianaming) had already folded into single files on master. Fold them back into one .cs per type, laid out like master, keeping the branch's neutral IGeometry/GeometryFactory/CompositionPath implementation in place of the old SkiaGeometrySource2D/SKPathBuilder bodies. Also removes the #if __NETSTD_REFERENCE__ MeasureOverride/ArrangeOverride stubs that unoplatform#23999 (referencedrop) and unoplatform#24020 (deadflavorguards) dropped and the merges brought back. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XsQppKuZgijApgJxaTZt81
EllipseGeometry/Geometry/GeometryGroup/PathGeometry/RectangleGeometry were re-split into base .cs + .skia.cs pairs; unoplatform#24001 (skianaming) had already folded these on master. Fold back into one .cs per type, keeping the branch's neutral IGeometry/GeometryFactory implementation in place of the old SKPath/SKPathBuilder bodies. Also removes the #if __NETSTD_REFERENCE__ guard-drop reverts from unoplatform#23999 (referencedrop) that the merges brought back. NonUniformCornerRadius.GetRadii(SKPoint*) from unoplatform#23999/unoplatform#24020 is not restored: BorderVisual.skia.cs already builds rounded-rect geometry straight from the Vector2 corner fields (AddRoundedRectangle), so the unsafe pointer adapter has no remaining caller under the branch design. LineGeometry.cs was left untouched: its only difference from master is the intentional GetGeometry()/IGeometry neutral-seam rewrite. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XsQppKuZgijApgJxaTZt81
The merges re-split Inline.skia.cs/Run.skia.cs out of the base files and brought back the __NETSTD_REFERENCE__ block unoplatform#23999/unoplatform#24020 removed. Folded back into master's layout, keeping the neutral IFont members. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01XsQppKuZgijApgJxaTZt81
Master removed the Lottie .reference.cs code with unoplatform#23999/unoplatform#24056; the branch brought it back. It is excluded from the Skia-only Uno.UI build and nothing references it. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XsQppKuZgijApgJxaTZt81
…tform#23619/unoplatform#23671/unoplatform#24020/unoplatform#23999 Fold Application.skia.cs and Application.reference.cs back into Application.cs (unoplatform#24001 skianaming), fix the Lauched->Launched typo (unoplatform#23619), keep the branch's __SKIA__-only ALC window teardown (unoplatform#23671 was WASM+Skia but native heads are gone), and drop the dead UNO_HAS_ENHANCED_LIFECYCLE/__NETSTD_REFERENCE__ guards (unoplatform#24020/unoplatform#23999). Application.reference.cs is dead code in the Skia-only build and is removed, matching master. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XsQppKuZgijApgJxaTZt81
…m#23999/unoplatform#23671 Image.cs still carried the pre-unoplatform#24001 #if-split legacy download/URI pipeline (dead since the Subscribe/ImageData reactive pipeline replaced it) while the neutral rendering lived in the resurrected Image.skia.cs. Fold that neutral rendering into Image.cs, matching master's structure, and drop the legacy members master already removed (OnImageFailed/OnImageOpened/TraceProvider/ToString/etc. - their behavior now lives in BitmapImage/SvgImageSource raising the events directly). Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XsQppKuZgijApgJxaTZt81
…platform#23999 Fold the resurrected AcrylicBrush.skia.cs (the branch's neutral material-brush + composition-effect rendering) back into AcrylicBrush.cs, matching master's single-file layout without reintroducing the SkiaSharp/SkiaAcrylicBrush types the branch already replaced with AcrylicMaterialBrush/ITexture. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XsQppKuZgijApgJxaTZt81
GitHub Issue: part of #8339
PR Type:
💥 Breaking change (packaging / build layout)
What changed? 🚀
Uno.WinUIand the UI-layer add-ins no longer ship auno-runtimefolder:lib/<tfm>is now the Skia build.The Reference flavor was an API-narrowing device, not a TFM-neutrality device —
NetReferencePreviousAndCurrentandNetSkiaPreviousAndCurrentboth expand tonet10.0;net11.0, so the Skia heads were already TFM-agnostic. With native WASM rendering gone,Uno.WinUIships nowebassemblyruntime folder, which left the UI-layer runtime swap with exactly one possible destination. So the swap has nothing left to choose between.*.Reference.csprojprojects and the.reference.csfiles that only existed to give the Reference surfacebase.X()-callable stubs. Those overrides are all present with real implementations in the Skia sources that now populatelib/.lib/inUno.WinUI,Uno.WinUI.Lottie,Uno.WinUI.Svg,Uno.WinUI.MSAL,Uno.WinUI.XamlHostandUno.WinUI.DevServeris now populated from the Skia build; theiruno-runtimeentries are gone.Uno.UI.MSAL'sbuildTransitivetargets are removed — they only registeredUnoRuntimeEnabledPackage, which drove the now-absent runtime-folder selection.Lottie/Svgkeep theirs, since those carry a SkiaSharp/Skottie dependency validation target unrelated to runtime selection.ValidatePackageReferenceAPInow runsUno.ReferenceImplCompareragainstUno.WinRTinstead ofUno.WinUI. That tool compares a package's referencelib/against its ownuno-runtime/<tfm>/<rid>implementations; with no runtime folder inUno.WinUIit has nothing to compare.Uno.WinUI's public surface remains gated byUno.PackageDiffin theValidatePackagetarget, which diffs against the previously published baseline.Kept on Reference (deliberate carve-out):
Uno.UWP,Uno.FoundationandUno.UI.Dispatching.Uno.WinRT.nuspecstill ships bothwebassemblyandskiaruntime folders for them, and they are the union compile surface that letsUno.UIstay platform-agnostic. That boundary is the existing trio inRuntimeAssetsSelectorTask.IsWinRTAssembly.PR Checklist ✅
using-skia-rendering.md,building-uno-ui.mdandspecs/043-drop-native-rendering/spec.mdupdated hereScreenshots Compare Test Runresults.Breaking change impact and migration
Who is affected: consumers that reference the
uno-runtimefolder ofUno.WinUIor the UI-layer add-in packages directly, or that carry custom MSBuild logic keyed onUnoRuntimeEnabledPackage/UnoRuntimeIdentifierfor those packages.Impact: the
uno-runtime/<tfm>/skiaassemblies for the UI layer move tolib/<tfm>. NormalPackageReferenceconsumers are unaffected — NuGet resolveslib/for them — and no public API is removed; this is a package-layout change, not a surface change.Migration: remove any hand-rolled path references to
uno-runtimeforUno.WinUIand the UI-layer add-ins and let NuGet resolvelib/. Custom targets that registered these packages viaUnoRuntimeEnabledPackageshould drop the registration.This lands on
feature/breakingchangesas part of the 7.0 breaking-changes rollout.🤖 Generated with Claude Code