Skip to content

build: Build cleanup post UWP drop - #23183

Merged
MartinZikmund merged 2 commits into
unoplatform:masterfrom
Youssef1313:cleanup-uwp-build
May 5, 2026
Merged

MartinZikmund merged 2 commits into
unoplatform:masterfrom
Youssef1313:cleanup-uwp-build

Conversation

@Youssef1313

Copy link
Copy Markdown
Member

GitHub Issue: closes #

PR Type:

🔄 Refactoring (no functional changes, no api changes)
🏗️ Build or CI related changes

What changed? 🚀

Cleanup dead build infra.

PR Checklist ✅

Copilot AI review requested due to automatic review settings May 2, 2026 15:19
@github-actions github-actions Bot added the platform/wasm 🌐 Categorizes an issue or PR as relevant to the WebAssembly platform label May 2, 2026
@Youssef1313

Copy link
Copy Markdown
Member Author

@MartinZikmund Please take a look.

@github-actions github-actions Bot added platform/android 🤖 Categorizes an issue or PR as relevant to the Android platform platform/macos 🍏 Categorizes an issue or PR as relevant to the macOS platform platform/ios 🍎 Categorizes an issue or PR as relevant to the iOS platform area/skia ✏️ Categorizes an issue or PR as relevant to Skia 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 platform/wpf 🪟 Categorizes an issue or PR as relevant to WPF area/sdk Categorizes an issue or PR as relevant to the Uno.Sdk platform/x11 🐧 Categorizes an issue or PR as relevant to X11 labels May 2, 2026

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 remaining UWP-era build switches after the repository’s WinUI-only transition, mainly by hardcoding Uno.WinUI package identities and stripping UNO_UWP_BUILD conditionals from project, packaging, and CI files. It fits into the build/packaging layer of the repo by simplifying how packages, overrides, source generators, samples, and CI templates resolve the active XAML flavor.

Changes:

  • Replaces conditional PackageId/override-package logic with unconditional Uno.WinUI naming across core packages, add-ins, runtime packages, and remote-control artifacts.
  • Removes UNO_UWP_BUILD-gated inclusions/exclusions from runtime tests, samples, source generators, and shared build props/targets.
  • Simplifies Azure DevOps templates and NuGet packaging scripts/nuspecs to assume WinUI-only outputs.

Reviewed changes

Copilot reviewed 86 out of 86 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/Uno.UI/Uno.UI.netcoremobile.csproj Hardcodes Uno.WinUI package ID for netcoremobile UI package.
src/Uno.UI/Uno.UI.Wasm.csproj Hardcodes Uno.WinUI package ID for Wasm UI package.
src/Uno.UI/Uno.UI.Skia.csproj Hardcodes Uno.WinUI package ID for Skia UI package.
src/Uno.UI.XamlHost.Skia.Wpf/Uno.UI.XamlHost.Skia.Wpf.csproj Hardcodes WinUI XamlHost package ID.
src/Uno.UI.Toolkit/Uno.UI.Toolkit.netcoremobile.csproj Makes override package-id rewrite always target uno.winui.
src/Uno.UI.RuntimeTests/Uno.UI.RuntimeTests.netcoremobile.csproj Removes UWP-only warnings and multiwindow exclusions.
src/Uno.UI.RuntimeTests/Uno.UI.RuntimeTests.Wasm.csproj Removes UWP-only multiwindow exclusions.
src/Uno.UI.RuntimeTests/Uno.UI.RuntimeTests.Skia.csproj Removes UWP-only multiwindow exclusions.
src/Uno.UI.RuntimeTests/Directory.Build.targets Drops UWP-gated test file removals.
src/Uno.UI.Runtime.WebAssembly/Uno.UI.Runtime.WebAssembly.csproj Hardcodes WinUI runtime package ID for Wasm.
src/Uno.UI.Runtime.Skia/Uno.UI.Runtime.Skia.csproj Hardcodes WinUI runtime package ID for Skia base runtime.
src/Uno.UI.Runtime.Skia.X11/Uno.UI.Runtime.Skia.X11.csproj Hardcodes WinUI runtime package ID for X11.
src/Uno.UI.Runtime.Skia.Wpf/Uno.UI.Runtime.Skia.Wpf.csproj Hardcodes WinUI runtime package ID for WPF.
src/Uno.UI.Runtime.Skia.Win32/Uno.UI.Runtime.Skia.Win32.csproj Hardcodes WinUI runtime package ID for Win32.
src/Uno.UI.Runtime.Skia.WebAssembly.Browser/Uno.UI.Runtime.Skia.WebAssembly.Browser.csproj Hardcodes WinUI runtime package ID for browser host.
src/Uno.UI.Runtime.Skia.MacOS/Uno.UI.Runtime.Skia.MacOS.csproj Hardcodes WinUI runtime package ID for macOS.
src/Uno.UI.Runtime.Skia.Linux.FrameBuffer/Uno.UI.Runtime.Skia.Linux.FrameBuffer.csproj Hardcodes WinUI runtime package ID for framebuffer runtime.
src/Uno.UI.Runtime.Skia.AppleUIKit/Uno.UI.Runtime.Skia.AppleUIKit.csproj Hardcodes WinUI runtime package ID for AppleUIKit runtime.
src/Uno.UI.Runtime.Skia.Android/Uno.UI.Runtime.Skia.Android.csproj Hardcodes WinUI runtime package ID for Android runtime.
src/Uno.UI.RemoteControl/Uno.UI.RemoteControl.netcoremobile.csproj Renames dev-server package ID and removes UWP XAML exclusions.
src/Uno.UI.RemoteControl/Uno.UI.RemoteControl.Wasm.csproj Renames dev-server package ID and removes UWP XAML exclusions.
src/Uno.UI.RemoteControl/Uno.UI.RemoteControl.Skia.csproj Renames dev-server package ID and removes UWP XAML exclusions.
src/Uno.UI.RemoteControl/Uno.UI.RemoteControl.Reference.csproj Renames dev-server package ID and removes UWP XAML exclusions.
src/Uno.UI.RemoteControl.VS/Uno.UI.RemoteControl.VS.csproj Hardcodes override package root to uno.winui.
src/Uno.UI.RemoteControl.Server/Uno.UI.RemoteControl.Server.csproj Hardcodes dev-server override package root to uno.winui.devserver.
src/Uno.UI.RemoteControl.Server.Processors/Uno.UI.RemoteControl.Server.Processors.csproj Hardcodes processor override package root to uno.winui.
src/Uno.UI.RemoteControl.Messaging/Uno.UI.RemoteControl.Messaging.csproj Renames messaging package to Uno.WinUI.DevServer.Messaging.
src/Uno.UI.RemoteControl.Host/Uno.UI.RemoteControl.Host.csproj Hardcodes host override package root to uno.winui.
src/Uno.Sdk/Uno.Sdk.csproj Always generates the Uno.Sdk package.
src/Uno.CrossTargetting.targets Always defines HAS_UNO_WINUI on non-UWP TFMs.
src/SourceGenerators/Uno.UI.Tasks/Uno.UI.Tasks.csproj Hardcodes override package root to uno.winui.
src/SourceGenerators/Uno.UI.SourceGenerators/Uno.UI.SourceGenerators.csproj Hardcodes override package root to uno.winui.
src/SourceGenerators/Uno.UI.SourceGenerators/Content/Uno.UI.SourceGenerators.props Makes not_mux namespace exclusion unconditional.
src/SourceGenerators/Uno.UI.SourceGenerators.Tests/Uno.UI.SourceGenerators.Tests.csproj Removes UWP guards from test inputs and dependencies.
src/SamplesApp/UITests.Shared/ItemExclusions.props Makes WinUI sample exclusions unconditional; drops UWP-only block.
src/SamplesApp/SamplesApp.Wasm/SamplesApp.Wasm.csproj Keeps only the WinUI Monaco dependency path.
src/Directory.Build.props Removes UWP-specific global build properties and warnings.
src/AddIns/Uno.WinUI.Graphics3DGL/Uno.WinUI.Graphics3DGL.csproj Drops UWP branches from Windows add-in build setup.
src/AddIns/Uno.WinUI.Graphics3DGL/GLCanvasElement.cs Removes UWP-specific namespace import branch.
src/AddIns/Uno.UI.WebView.Skia.X11/Uno.UI.WebView.Skia.X11.csproj Hardcodes WinUI package ID for X11 WebView add-in.
src/AddIns/Uno.UI.Svg/Uno.UI.Svg.netcoremobile.csproj Switches mobile SVG add-in to WinUI-only SkiaSharp/Uno packages.
src/AddIns/Uno.UI.Svg/Uno.UI.Svg.Skia.csproj Switches Skia SVG add-in to WinUI-only SkiaSharp package.
src/AddIns/Uno.UI.MediaPlayer.WebAssembly/Uno.UI.MediaPlayer.WebAssembly.csproj Hardcodes WinUI package ID for WebAssembly media player add-in.
src/AddIns/Uno.UI.MediaPlayer.Skia.X11/Uno.UI.MediaPlayer.Skia.X11.csproj Hardcodes WinUI package ID for X11 media player add-in.
src/AddIns/Uno.UI.MediaPlayer.Skia.Win32/Uno.UI.MediaPlayer.Skia.Win32.csproj Hardcodes WinUI package ID for Win32 media player add-in.
src/AddIns/Uno.UI.Maps/Uno.UI.Maps.netcoremobile.csproj Renames maps package and makes WinUI-only no-op exclusions unconditional.
src/AddIns/Uno.UI.MSAL/Uno.UI.MSAL.netcoremobile.csproj Renames MSAL mobile package to WinUI.
src/AddIns/Uno.UI.MSAL/Uno.UI.MSAL.Windows.csproj Renames MSAL Windows package to WinUI.
src/AddIns/Uno.UI.MSAL/Uno.UI.MSAL.Reference.csproj Renames MSAL reference package to WinUI.
src/AddIns/Uno.UI.Lottie/Uno.UI.Lottie.netcoremobile.csproj Removes UWP branches and keeps WinUI Lottie dependencies.
src/AddIns/Uno.UI.Lottie/Uno.UI.Lottie.Tests.csproj Removes UWP branches from Lottie test packaging setup.
src/AddIns/Uno.UI.Lottie/Uno.UI.Lottie.Skia.csproj Removes UWP branches from Skia Lottie packaging/override logic.
src/AddIns/Uno.UI.Lottie/Uno.UI.Lottie.Reference.csproj Removes UWP branches from reference Lottie packaging setup.
src/AddIns/Uno.UI.GooglePlay/Uno.UI.GooglePlay.netcoremobile.csproj Hardcodes WinUI package ID for GooglePlay add-in.
src/AddIns/Uno.UI.Foldable/Uno.UI.Foldable.netcoremobile.csproj Hardcodes WinUI package ID for Foldable add-in.
build/nuget/Uno.WinUI.nuspec Sets base package id/title to Uno.WinUI.
build/nuget/Uno.WinUI.WebAssembly.nuspec Sets WebAssembly package id/title to WinUI naming.
build/nuget/Uno.WinUI.Svg.nuspec Updates SVG nuspec dependencies to WinUI package names.
build/nuget/Uno.WinUI.Skia.X11.nuspec Updates nuspec title to WinUI/X11 package name.
build/nuget/Uno.WinUI.Skia.Wpf.nuspec Updates nuspec title to WinUI/WPF package name.
build/nuget/Uno.WinUI.Skia.MacOS.nuspec Updates nuspec title to WinUI/macOS package name.
build/nuget/Uno.WinUI.Skia.Linux.FrameBuffer.nuspec Updates nuspec title to WinUI/framebuffer package name.
build/nuget/Uno.WinUI.DevServer.nuspec Renames dev-server package id/title to WinUI.
build/ci/tests/.azure-devops-tests-windows-skia.yml Removes UNO_UWP_BUILD parameter/variable plumbing.
build/ci/tests/.azure-devops-tests-webassembly-skia.yml Removes UNO_UWP_BUILD parameter/variable plumbing.
build/ci/tests/.azure-devops-tests-webassembly-skia-build.yml Removes UNO_UWP_BUILD parameter/variable plumbing.
build/ci/tests/.azure-devops-tests-webassembly-native.yml Removes fixed UNO_UWP_BUILD variable.
build/ci/tests/.azure-devops-tests-unit-tests.yml Removes fixed UNO_UWP_BUILD variable.
build/ci/tests/.azure-devops-tests-skia-stages.yml Removes UNO_UWP_BUILD from stage/template forwarding.
build/ci/tests/.azure-devops-tests-skia-build.yml Removes UNO_UWP_BUILD parameter/variable plumbing.
build/ci/tests/.azure-devops-tests-macos-skia.yml Removes UNO_UWP_BUILD parameter/variable plumbing.
build/ci/tests/.azure-devops-tests-linux-skia.yml Removes UNO_UWP_BUILD gating from Linux Skia jobs.
build/ci/tests/.azure-devops-tests-ios-skia.yml Removes UNO_UWP_BUILD parameter.
build/ci/tests/.azure-devops-tests-ios-skia-build.yml Removes UNO_UWP_BUILD parameter/variable plumbing.
build/ci/tests/.azure-devops-tests-android-skia.yml Removes UNO_UWP_BUILD parameter.
build/ci/tests/.azure-devops-tests-android-skia-build.yml Removes UNO_UWP_BUILD parameter/variable plumbing.
build/ci/tests/.azure-devops-tests-android-nativeaot-skia.yml Removes UNO_UWP_BUILD parameter.
build/ci/tests/.azure-devops-tests-android-nativeaot-skia-build.yml Removes UNO_UWP_BUILD parameter/variable plumbing.
build/ci/tests/.azure-devops-tests-android-coreclr-skia.yml Removes UNO_UWP_BUILD parameter.
build/ci/tests/.azure-devops-tests-android-coreclr-skia-build.yml Removes UNO_UWP_BUILD parameter/variable plumbing.
build/ci/docs/.azure-devops-docs.yml Removes fixed UNO_UWP_BUILD variable.
build/ci/build/.azure-devops-build-native.yml Removes UNO_UWP_BUILD variable from native build job.
build/ci/build/.azure-devops-build-managed.yml Removes UNO_UWP_BUILD parameter/variable from managed build job.
build/ci/.azure-devops-stages.yml Stops passing UNO_UWP_BUILD through the main pipeline stages.
build/Uno.UI.Build.csproj Simplifies pack/validate flow to WinUI-only package naming and paths.
Directory.Build.props Removes default UNO_UWP_BUILD and makes NetUWPOrWinUI WinUI-only.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Directory.Build.props Resolved
Comment thread build/Uno.UI.Build.csproj Resolved
Comment thread build/Uno.UI.Build.csproj Resolved
@Youssef1313
Youssef1313 force-pushed the cleanup-uwp-build branch from c3ea53f to 39c11c2 Compare May 2, 2026 15:27
Copilot AI review requested due to automatic review settings May 2, 2026 15:29
@Youssef1313
Youssef1313 force-pushed the cleanup-uwp-build branch from 39c11c2 to 1923fd1 Compare May 2, 2026 15:29

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

Copilot reviewed 86 out of 86 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 210453 did not find any UI Test snapshots differences.

@MartinZikmund MartinZikmund left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Beautiful 🥳🥳

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 210453 has failed on Uno.UI - CI.

@Youssef1313
Youssef1313 force-pushed the cleanup-uwp-build branch from 1923fd1 to 3088de3 Compare May 4, 2026 05:49
@Youssef1313

Copy link
Copy Markdown
Member Author

Rebased on latest master.

@Youssef1313

Copy link
Copy Markdown
Member Author

@ajpinedam @MartinZikmund This previously kept failing some tests in CI that look unrelated. If it kept happening again after the current new fresh build, please consider looking into the flaky tests and disabling them.

@MartinZikmund
MartinZikmund enabled auto-merge May 4, 2026 05:59
@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 210511 did not find any UI Test snapshots differences.

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 210511 has failed on Uno.UI - CI.

Copilot AI review requested due to automatic review settings May 4, 2026 19:50

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

Copilot reviewed 86 out of 86 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 210708 found UI Test snapshots differences: skia-linux-screenshots: 0, skia-windows-screenshots: 80, wasm: 0

Details
  • skia-linux-screenshots: 0 changed over 2338

  • skia-windows-screenshots: 80 changed over 2338

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • DisplayInformation.png-dark
    • DisplayInformation.png
    • DoubleImageBrushInList.png-dark
    • DoubleImageBrushInList.png
    • Buttons.png-dark
    • CalendarView_Theming.png-dark
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • ClipboardTests.png-dark
    • ClipboardTests.png
    • FluentStyle_NavigationViewSample.png-dark
    • FluentStyle_NavigationViewSample.png
    • Focus_FocusVisual_Properties.png-dark
    • Focus_FocusVisual_Properties.png
    • Image_Stretch_Alignment_Bigger.png-dark
    • Image_Stretch_Alignment_Bigger.png
    • Examples.png
    • ElementLevelTheme.png-dark
    • DropDownButtonPage.png-dark
    • DropDownButtonPage.png
  • wasm: 0 changed over 1073

@MartinZikmund
MartinZikmund merged commit 717d119 into unoplatform:master May 5, 2026
99 checks passed
@Youssef1313
Youssef1313 deleted the cleanup-uwp-build branch May 5, 2026 07:40
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 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/wpf 🪟 Categorizes an issue or PR as relevant to WPF platform/x11 🐧 Categorizes an issue or PR as relevant to X11

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants