Repository navigation
refactor: Remove legacy macOS build target references - #22677
Merged
Merged
Conversation
1 of 5 tasks
Co-authored-by: MartinZikmund <[email protected]>
|
|
Copilot
AI
changed the title
[WIP] Refactor to remove legacy macOS references
refactor: Remove legacy macOS build target references
Feb 18, 2026
MartinZikmund
approved these changes
Feb 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GitHub Issue: closes #
PR Type: 🔄 Refactoring
What is the current behavior? 🤔
The codebase contains references to legacy native macOS as a build target, including
IsMacOSproperties,MacOStarget constants, and macOS-specific XAML namespace conditions in build infrastructure and test tooling.What is the new behavior? 🚀
Removed legacy macOS build target infrastructure:
MacOSconstant fromUnoTarget.cs, removedIsMacOSproperty from platform detection, removedMacOSProjectFolderconfiguration and import ofUno.Common.MacOS.targetsnot_macos,macos) fromCSGenerator.csand eliminatedMicrosoft.macOS.Refpackage detection block*.Apple.csfile inclusion condition inUno.CrossTargeting.targetsfrom!$(IsMacOS) and !$(IsAppleUIKit)to!$(IsAppleUIKit), aligning with main cross-targeting filemacOS remains fully supported via Skia rendering (
net10.0-desktopTFM). The orphanedUno.Common.MacOS.targetsandUno.SingleProject.MacOS.targetsfiles 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:
Screenshots Compare Test Runresults.Other information ℹ️
Build validation passed for
Uno.Sdk.csprojandUno.UI.SourceGenerators.Tests.csproj.💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.