Skip to content

refactor: Remove legacy macOS build target references - #22677

Merged
MartinZikmund merged 2 commits into
dev/mazi/macos-cleanupfrom
copilot/sub-pr-22650
Feb 18, 2026
Merged

MartinZikmund merged 2 commits into
dev/mazi/macos-cleanupfrom
copilot/sub-pr-22650

Conversation

Copilot AI commented Feb 18, 2026 •

Copy link
Copy Markdown
Contributor

GitHub Issue: closes #

PR Type: 🔄 Refactoring

What is the current behavior? 🤔

The codebase contains references to legacy native macOS as a build target, including IsMacOS properties, MacOS target constants, and macOS-specific XAML namespace conditions in build infrastructure and test tooling.

What is the new behavior? 🚀

Removed legacy macOS build target infrastructure:

  • Build targets: Removed MacOS constant from UnoTarget.cs, removed IsMacOS property from platform detection, removed MacOSProjectFolder configuration and import of Uno.Common.MacOS.targets
  • XAML test infrastructure: Removed macOS namespace conditions (not_macos, macos) from CSGenerator.cs and eliminated Microsoft.macOS.Ref package detection block
  • Cross-targeting: Simplified *.Apple.cs file inclusion condition in Uno.CrossTargeting.targets from !$(IsMacOS) and !$(IsAppleUIKit) to !$(IsAppleUIKit), aligning with main cross-targeting file

macOS remains fully supported via Skia rendering (net10.0-desktop TFM). The orphaned Uno.Common.MacOS.targets and Uno.SingleProject.MacOS.targets files remain in-tree but are no longer imported. Removal of __MACOS__ compiler defines will be addressed in a separate PR.

PR Checklist ✅

Please check if your PR fulfills the following requirements:

Other information ℹ️

Build validation passed for Uno.Sdk.csproj and Uno.UI.SourceGenerators.Tests.csproj.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copilot AI changed the title [WIP] Refactor to remove legacy macOS references refactor: Remove legacy macOS build target references Feb 18, 2026
Copilot AI requested a review from MartinZikmund February 18, 2026 21:45
@MartinZikmund
MartinZikmund marked this pull request as ready for review February 18, 2026 22:24
@MartinZikmund
MartinZikmund merged commit 5b290fe into dev/mazi/macos-cleanup Feb 18, 2026
5 checks passed
@MartinZikmund
MartinZikmund deleted the copilot/sub-pr-22650 branch February 18, 2026 22:24
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants