Skip to content

refactor(build)!: Fold UI-layer Reference flavor into Skia - #23999

Merged
MartinZikmund merged 35 commits into
feature/breakingchangesfrom
dev/mazi/referencedrop
Aug 10, 2026
Merged

MartinZikmund merged 35 commits into
feature/breakingchangesfrom
dev/mazi/referencedrop

Conversation

@MartinZikmund

@MartinZikmund MartinZikmund commented Aug 7, 2026 •

Copy link
Copy Markdown
Member

GitHub Issue: part of #8339

PR Type:

💥 Breaking change (packaging / build layout)

What changed? 🚀

Uno.WinUI and the UI-layer add-ins no longer ship a uno-runtime folder: lib/<tfm> is now the Skia build.

The Reference flavor was an API-narrowing device, not a TFM-neutrality device — NetReferencePreviousAndCurrent and NetSkiaPreviousAndCurrent both expand to net10.0;net11.0, so the Skia heads were already TFM-agnostic. With native WASM rendering gone, Uno.WinUI ships no webassembly runtime folder, which left the UI-layer runtime swap with exactly one possible destination. So the swap has nothing left to choose between.

  • Folded the UI-layer Reference heads into Skia, deleting the *.Reference.csproj projects and the .reference.cs files that only existed to give the Reference surface base.X()-callable stubs. Those overrides are all present with real implementations in the Skia sources that now populate lib/.
  • lib/ in Uno.WinUI, Uno.WinUI.Lottie, Uno.WinUI.Svg, Uno.WinUI.MSAL, Uno.WinUI.XamlHost and Uno.WinUI.DevServer is now populated from the Skia build; their uno-runtime entries are gone.
  • Uno.UI.MSAL's buildTransitive targets are removed — they only registered UnoRuntimeEnabledPackage, which drove the now-absent runtime-folder selection. Lottie/Svg keep theirs, since those carry a SkiaSharp/Skottie dependency validation target unrelated to runtime selection.
  • ValidatePackageReferenceAPI now runs Uno.ReferenceImplComparer against Uno.WinRT instead of Uno.WinUI. That tool compares a package's reference lib/ against its own uno-runtime/<tfm>/<rid> implementations; with no runtime folder in Uno.WinUI it has nothing to compare. Uno.WinUI's public surface remains gated by Uno.PackageDiff in the ValidatePackage target, which diffs against the previously published baseline.

Kept on Reference (deliberate carve-out): Uno.UWP, Uno.Foundation and Uno.UI.Dispatching. 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.

PR Checklist ✅

  • 🧪 Added Runtime tests, UI tests, or a manual test sample (for bug fixes / features, if applicable) — not applicable: build/packaging change with no runtime behaviour of its own; the packaging and API-diff gates cover it
  • 📚 Docs have been added/updated following the documentation template (for bug fixes / features) — using-skia-rendering.md, building-uno-ui.md and specs/043-drop-native-rendering/spec.md updated here
  • 🖼️ Validated PR Screenshots Compare Test Run results.
  • ❗ Contains NO breaking changes
  • 👀 Reviewed 2 other open pull requests (optional but appreciated!)

Breaking change impact and migration

Who is affected: consumers that reference the uno-runtime folder of Uno.WinUI or the UI-layer add-in packages directly, or that carry custom MSBuild logic keyed on UnoRuntimeEnabledPackage / UnoRuntimeIdentifier for those packages.

Impact: the uno-runtime/<tfm>/skia assemblies for the UI layer move to lib/<tfm>. Normal PackageReference consumers are unaffected — NuGet resolves lib/ 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-runtime for Uno.WinUI and the UI-layer add-ins and let NuGet resolve lib/. Custom targets that registered these packages via UnoRuntimeEnabledPackage should drop the registration.

This lands on feature/breakingchanges as part of the 7.0 breaking-changes rollout.

🤖 Generated with Claude Code

Copilot AI lite review requested due to automatic review settings August 7, 2026 09:46
@github-actions github-actions Bot added area/code-generation Categorizes an issue or PR as relevant to code generation area/build Categorizes an issue or PR as relevant to build infrastructure area/automation Categorizes an issue or PR as relevant to project automation kind/documentation labels Aug 7, 2026
@github-actions

github-actions Bot commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 6m 10s —— View job


PR Review — refactor(build)!: Fold UI-layer Reference flavor into Skia

  • Gather context and understand the PR
  • Review changed files for correctness and conventions
  • Post inline comments for specific findings
  • Update summary comment

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)

Severity Count
Medium 1
Low 2

Medium — Validation coverage reduction

ValidatePackageReferenceAPI in build/Uno.UI.Build.csproj now only validates Uno.WinRT.nupkg instead of Uno.WinUI.nupkg. The rationale is correct (lib/ is the Skia build so there is nothing to compare against), but this means API surface narrowing in any UI-layer package will no longer be caught automatically. Please confirm that PackageDiff or another gate covers this, or that the loss is accepted.

Low — Leftover empty comment sections

Several nuspec files have dead / sections with no <file> entries beneath them after the uno-runtime entries were removed. Affected files: Uno.WinUI.DevServer.nuspec, Uno.WinUI.Lottie.nuspec, Uno.WinUI.Svg.nuspec, Uno.WinUI.MSAL.nuspec, Uno.WinUI.XamlHost.nuspec.

Low — Hardcoded SkiaSharp/HarfBuzzSharp versions

Uno.WinUI.nuspec now declares SkiaSharp 4.151.0-rc.1.1 and HarfBuzzSharp 14.2.1.1 as explicit dependencies (needed since lib/ now carries the Skia build). These literals are duplicated for both net10.0 and net11.0 groups and need to stay in sync with the actual package versions in Directory.Packages.props. A drift here would cause dependency conflicts for consumers.


What was verified

  • FlipView override stubs — The deleted FlipView.reference.cs carried virtual override stubs that were required so consumers could call base.X(). Confirmed all eight methods (OnPointerWheelChanged, OnPointerEntered, GetContainerForItemOverride, OnItemsChanged, PrepareContainerForItemOverride, OnCreateAutomationPeer, MeasureOverride, ArrangeOverride) are present with full implementations in FlipView.managed.cs — deletion is safe. ✅
  • VisualCollection.reference.cs empty partial method bodies — C# elides calls to unimplemented partial methods; the empty implementations are functionally identical to having no implementation. Deletion is safe. ✅
  • Visual.reference.cs NativeOwner property — internal property that existed only in the Reference build. Confirmed it is not referenced anywhere in the Skia build of Uno.UI.Composition, so its removal has no impact. ✅
  • File renames (.skia.cs → .cs) — Uno.UI.Composition now has a single project (Uno.UI.Composition.Skia.csproj); removing the .skia.cs suffix is correct since no other project compiles those files. ✅
  • UnoRuntimeEnabledPackage removal from buildTransitive targets — Correct; the runtime-asset swap mechanism no longer applies to UI-layer packages. All affected .targets files either had only the package registration (deleted entirely, e.g. Uno.WinUI.MSAL.targets) or kept their other content (e.g. Uno.WinUI.Lottie.targets validation target). ✅
  • Uno.Foundation.csproj deletion — An orphaned file (already not referenced by any solution/filter) with UnoRuntimeIdentifier=Skia. Uno.Foundation.Skia.csproj is the surviving Skia project. Deletion is cleanup. ✅
  • PropertiesTest.xaml.cs preprocessor fix — Correctly removes an orphaned #elif __APPLE_UIKIT__ block (commit message fix(xaml): Remove orphaned preprocessor branch). The remaining #if __ANDROID__ block is well-formed. ✅

@MartinZikmund

Copy link
Copy Markdown
Member Author

Given these changes, we should actually be able to drop the .Skia namings on Uno.UI and above - e.g. Uno.UI.Skia.csproj -> Uno.UI.csproj, or "file.skia.cs" -> file.cs", in most cases.

Comment thread build/nuget/Uno.WinUI.DevServer.nuspec Resolved
Comment thread build/Uno.UI.Build.csproj Resolved
Comment thread build/nuget/Uno.WinUI.nuspec Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.csproj projects and *.reference.cs stubs; update solution/filters/tests to reference Skia heads instead.
  • Update NuGet packaging + override-cache paths from uno-runtime/... to lib/<tfm> for UI-layer packages (and adjust API comparer to validate Uno.WinRT instead of Uno.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.

Comment thread build/nuget/uno.winui.common.targets Resolved
@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 226353 found UI Test snapshots differences: skia-linux-screenshots: 74, skia-windows-screenshots: 284

Details
  • skia-linux-screenshots: 74 changed over 2392

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Buttons.png
    • DropDownButtonPage.png-dark
    • DamageRegion_ShadowChildPaintingCaster.png-dark
    • DoubleImageBrushInList.png-dark
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Gamepad_CurrentReading.png-dark
    • DynamicFont.png-dark
    • Gamepad_Enumeration.png-dark
    • ImageBrush_Stretch.png
    • CalendarView_Theming.png-dark
    • ClipboardTests.png-dark
    • Focus_FocusVisual_Properties.png-dark
    • Focus_FocusVisual_Properties.png
    • DisplayInformation.png-dark
    • Image_UseTargetSizeLate.png-dark
    • Image_UseTargetSizeLate.png
    • Examples.png
    • ExpanderColorValidationPage.png-dark
    • ContextRequested.png-dark
  • skia-windows-screenshots: 284 changed over 2392

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Ellipse.png-dark
    • Ellipse.png
    • BitmapIcon_Generic.png-dark
    • BitmapIcon_Generic.png
    • BorderVisualClipping.png-dark
    • EllipsemaskingEllipseGrid.png-dark
    • EllipsemaskingEllipseGrid.png
    • ImageAlignment2541.png-dark
    • ImageAlignment2541.png
    • Attributed_text_FontSize_Changing.png-dark
    • BitmapIcon_Foreground.png
    • Buttons.png-dark
    • Buttons.png
    • ColorPickerSample.png-dark
    • ColorPickerSample.png
    • ContentPresenter_Template.png-dark
    • ContentPresenter_Template.png
    • DisplayInformation.png-dark
    • ElevatedView_Tester.png-dark
    • ElevatedView_Tester.png

@github-actions

github-actions Bot commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 11m 35s —— View job


PR Review — refactor(build)!: Fold UI-layer Reference flavor into Skia

  • Gather context and understand the PR
  • Review changed files for correctness and conventions
  • Post inline comments for specific findings
  • Update summary comment

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 a00c201e commit (latest) already addressed the empty nuspec comment sections flagged in the prior review. Inline comments on the SkiaSharp/HarfBuzzSharp version literals point to the canonical source (Directory.Build.targets:77-78) — both versions match today.

Issues

Severity Finding
Medium Screenshot comparison failures: 74 Linux, 284 Windows diffs reported by CI
Low SkiaSharp/HarfBuzzSharp versions hardcoded in nuspec in two groups (net10.0 and net11.0) need manual sync to src/Directory.Build.targets:77-78
Nit FrameworkElement.Layout.cs (renamed from .crossruntime.cs) still carries a now-dead #if !__NETSTD_REFERENCE__ guard at line 1; the Reference project is gone so the condition is always true — safe to strip as a follow-up

Screenshot failures need explanation before merge

CI reports 74 Linux and 284 Windows screenshot differences. The prior lib/ assembly was built from the Reference project; the new lib/ is the Skia build. If any behaviour changed between those two heads (layout, font metrics, rendering detail), the screenshots would differ for real reasons, not just because the snapshots are stale. The nventive-devops diff bot flagged this mid-review — please confirm these are expected baseline drifts (the Reference stubs were thinner) rather than regressions, and update the baselines before landing.

What was verified

  • SkiaSharp/HarfBuzzSharp versions — 4.151.0-rc.1.1 and 14.2.1.1 in the nuspec match src/Directory.Build.targets:77-78. ✅
  • FrameworkElement.Layout.cs rename — pure rename from .crossruntime.cs; only Uno.UI.Skia.csproj exists so the .crossruntime.cs exclusion rule (IsCrossruntime=false → Remove) was irrelevant here anyway. ✅
  • FrameworkElement.Interface.cs — [NotImplemented] correctly retained on RenderPhase (line 60). ✅
  • Uno.UI.Skia.csproj Foundation reference — now references Uno.Foundation.Reference.csproj (not Skia) for the non-sync-generator path, matching the stated carve-out that keeps Uno.UWP/Uno.Foundation/Uno.UI.Dispatching on the Reference/Skia split. ✅
  • ValidatePackageReferenceAPI change — switching from Uno.WinUI to Uno.WinRT is correct; Uno.WinUI no longer ships an uno-runtime folder to compare against. Uno.WinUI's public surface is still gated by Uno.PackageDiff in the ValidatePackage target. ✅
  • Uno.ReferenceImplComparer/Program.cs — new early-exit when lib/ or uno-runtime/<tfm> directories are absent is correct and prevents false failures for packages that shipped only one assembly head. ✅
  • Empty nuspec comment sections — cleaned up in a00c201e. ✅
  • UnoRuntimeEnabledPackage removal — correctly removed from uno.winui.common.targets, uno.winui.win.targets, and the UI add-in .targets files. The runtime-replace target is still present for Uno.WinRT packages that retain their uno-runtime folder. ✅

@MartinZikmund

Copy link
Copy Markdown
Member Author

🤖 Addressed PR comments up to this point

  • @MartinZikmund: "we should actually be able to drop the .Skia namings on Uno.UI and above" — done on a stacked branch (dev/mazi/skianaming) rather than here, to keep this PR to one story. Nine single-flavor projects lose the suffix (Uno.UI, Composition, FluentTheme ×3, XamlHost, RemoteControl, Lottie, Svg) and all 99 .skia.cs files in the three Skia-only assemblies are folded into their base files. Toolkit/MSAL keep .Skia — they still have real .Windows/.netcoremobile siblings — and the 51 .skia.cs under Uno.UWP/Uno.Foundation/Uno.UI.Dispatching/RuntimeTests/SamplesApp stay, since those folders are compiled by several flavors and the suffix is still load-bearing there.
  • Review threads on the nuspec headers, ValidatePackageReferenceAPI scope, hardcoded SkiaSharp/HarfBuzzSharp versions, the two .reference.cs deletions, and the description/checklist mismatch — all replied to inline and resolved. Code change from that round: a00c201 (nuspec headers), plus a rewritten PR description declaring the breaking change and its migration path.

Comment thread build/nuget/Uno.WinUI.nuspec Resolved
Comment thread build/nuget/Uno.WinUI.nuspec Resolved
@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 226378 found UI Test snapshots differences: skia-linux-screenshots: 74, skia-windows-screenshots: 294

Details
  • skia-linux-screenshots: 74 changed over 2392

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • DropDownButtonPage.png-dark
    • Examples.png
    • ExpanderColorValidationPage.png-dark
    • Buttons.png
    • DynamicFont.png-dark
    • Gamepad_Enumeration.png-dark
    • ClipboardTests.png-dark
    • DamageRegion_ShadowChildPaintingCaster.png-dark
    • DoubleImageBrushInList.png-dark
    • Focus_FocusVisual_Properties.png-dark
    • Focus_FocusVisual_Properties.png
    • Image_UseTargetSizeLate.png-dark
    • Image_UseTargetSizeLate.png
    • ImageBrush_Stretch.png
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • ImageIconPage.png-dark
    • ImageIconPage.png
    • CalendarView_Theming.png-dark
    • ButtonClippingTestsControl.png-dark
  • skia-windows-screenshots: 294 changed over 2392

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Basics Pivot Test.png
    • AppBar_KeyBoard.png-dark
    • AutoSuggestBox_BitmapIcon.png
    • Basics Pivot Test.png-dark
    • BitmapIcon_Foreground.png-dark
    • BitmapIcon_Foreground.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • EmailManagerTests.png-dark
    • EmailManagerTests.png
    • GetFocus.png-dark
    • GetFocus.png
    • AutoSuggestBox_BitmapIcon.png-dark
    • BitmapIcon_Sizing.png-dark
    • CheckBox_Button.png
    • Examples.png
    • ExpanderColorValidationPage.png-dark
    • Gamepad_CurrentReading.png-dark
    • Haptics.VibrationDevice.png-dark
    • Haptics.VibrationDevice.png

Comment thread src/Uno.UI-Reference-Only.slnf Resolved
Comment thread build/nuget/Uno.WinUI.DevServer.nuspec Resolved
Comment thread build/nuget/Uno.WinUI.nuspec Resolved
MartinZikmund and others added 5 commits August 9, 2026 11:00
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
@github-actions

Copy link
Copy Markdown
Contributor

WinAppSDK sync generator drift detected on 0cd5a09

The Uno.WinAppSDKSyncGenerator produced changes that are not committed on this PR.

To apply automatically (PRs from branches in this repo only): comment /apply-sync-gen on this PR and a bot will push chore: Sync generator run to the head branch.

To apply manually (required for PRs from forks):

  1. Download the sync-generator-patch artifact from this run.
  2. In your local checkout of the PR branch:
    git apply sync-generator.patch
    git add -A
    git commit -m "chore: Sync generator run"
    git push
    

Or re-run the generator locally on Windows via build\run-api-sync-tool.cmd.

@github-actions

Copy link
Copy Markdown
Contributor

Pushed chore: Sync generator run to this PR branch.

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 git commit --allow-empty -m "ci: re-run") or ask a maintainer to re-run the check.

@unodevops

Copy link
Copy Markdown
Contributor

@MartinZikmund

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 2 pipeline(s).

@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 226830 found UI Test snapshots differences: skia-linux-screenshots: 74, skia-windows-screenshots: 104

Details
  • skia-linux-screenshots: 74 changed over 2366

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • CalendarView_Theming.png-dark
    • DoubleImageBrushInList.png-dark
    • Buttons.png-dark
    • Buttons.png
    • ClipboardTests.png-dark
    • ClipboardTests.png
    • DamageRegion_ShadowChildPaintingCaster.png-dark
    • Examples.png
    • DynamicFont.png-dark
    • ImageIconPage.png-dark
    • ImageBrushInList.png-dark
    • ImageBrushInList.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • DisplayInformation.png-dark
    • DisplayInformation.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_CurrentReading.png
    • Gamepad_Enumeration.png-dark
    • Gamepad_Enumeration.png
  • skia-windows-screenshots: 104 changed over 2366

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ContentPresenter_NativeEmbedding_Android_FillType.png
    • DisplayInformation.png-dark
    • Basics.png-dark
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • ElementLevelTheme.png-dark
    • Focus_FocusVisual_Properties.png-dark
    • DropDownButtonPage.png-dark
    • DropDownButtonPage.png
    • Examples.png
    • ImageSourceUrlMsAppDataScheme.png-dark
    • Gamepad_CurrentReading.png-dark
    • Gamepad_Enumeration.png-dark
    • ImageBrushInList.png-dark
    • ImageBrushInList.png
    • Basics Pivot Test.png-dark
    • ExpanderColorValidationPage.png-dark
    • Attributed_text_FontSize_Changing.png-dark
    • DynamicFont.png-dark
    • Image_AnimatedWebP.png-dark

@MartinZikmund
MartinZikmund merged commit aff73c4 into feature/breakingchanges Aug 10, 2026
64 of 65 checks passed
@MartinZikmund
MartinZikmund deleted the dev/mazi/referencedrop branch August 10, 2026 21:53
Xiaoy312 added a commit that referenced this pull request Aug 11, 2026
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]>
Xiaoy312 added a commit that referenced this pull request Aug 11, 2026
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]>
Xiaoy312 added a commit that referenced this pull request Aug 11, 2026
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]>
Xiaoy312 added a commit that referenced this pull request Aug 11, 2026
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]>
Xiaoy312 added a commit that referenced this pull request Aug 11, 2026
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]>
Xiaoy312 added a commit that referenced this pull request Aug 11, 2026
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]>
Xiaoy312 added a commit that referenced this pull request Aug 12, 2026
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]>
MartinZikmund added a commit to ramezgerges/uno that referenced this pull request Sep 21, 2026
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
MartinZikmund added a commit to ramezgerges/uno that referenced this pull request Sep 21, 2026
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
MartinZikmund added a commit to ramezgerges/uno that referenced this pull request Sep 21, 2026
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
MartinZikmund added a commit to ramezgerges/uno that referenced this pull request Sep 21, 2026
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
MartinZikmund added a commit to ramezgerges/uno that referenced this pull request Sep 21, 2026
…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
MartinZikmund added a commit to ramezgerges/uno that referenced this pull request Sep 21, 2026
…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
MartinZikmund added a commit to ramezgerges/uno that referenced this pull request Sep 21, 2026
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/automation Categorizes an issue or PR as relevant to project automation area/build Categorizes an issue or PR as relevant to build infrastructure area/code-generation Categorizes an issue or PR as relevant to code generation area/sdk Categorizes an issue or PR as relevant to the Uno.Sdk area/skia ✏️ Categorizes an issue or PR as relevant to Skia area/solution-templates Categorizes an issue or PR as relevant to the solution template kind/documentation platform/android 🤖 Categorizes an issue or PR as relevant to the Android platform platform/ios 🍎 Categorizes an issue or PR as relevant to the iOS platform platform/macos 🍏 Categorizes an issue or PR as relevant to the macOS platform platform/wasm 🌐 Categorizes an issue or PR as relevant to the WebAssembly platform platform/x11 🐧 Categorizes an issue or PR as relevant to X11

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants