You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove the legacy UNO_REFERENCE_API, HAS_UNO_SKIA and __UNO_SKIA__ symbols (8.0) #24807
Stop defining the legacy consumer symbols UNO_REFERENCE_API, HAS_UNO_SKIA and __UNO_SKIA__, which are currently synonyms of __UNO__ (and HAS_UNO) (build/nuget/uno.winui.common.targets).
Suggested steps:
Mark UNO_REFERENCE_API as deprecated in the docs (platform-specific-csharp.md, uno-development/preprocessor-symbols.md), like HAS_UNO_SKIA/__UNO_SKIA__, which are already documented as planned for removal in 8.0.
Optionally, add a build message when project code still uses them, so migration isn't silent.
Remove the three symbols from uno.winui.common.targets, and update migrating-to-uno-8.md to say "replace with __UNO__".
Why is this needed? 🤔
Since 7.0, all three are defined exactly where __UNO__ is (#24554), so they carry no information. They're also misleading:
UNO_REFERENCE_API has nothing to do with reference assemblies.
HAS_UNO_SKIA/__UNO_SKIA__ don't name a drawing backend. Uno.UI is compiled once and picks its backend at run time.
Keeping them means extra docs and an extra symbol table for every consumer build, and it keeps suggesting a platform split that no longer exists.
Renderer 🎨
Skia
Native
For which platforms 📱💻🖥️
All platforms 🌍
Anything else we need to know? 💬
This is a breaking change for consumer code that uses these symbols, so it belongs in a major release (8.0). The change itself is mechanical: replace them with __UNO__, the preferred consumer spelling. Follow-up to #24554 (comment).
Activity