Remove the legacy UNO_REFERENCE_API, HAS_UNO_SKIA and __UNO_SKIA__ symbols (8.0)
What would you like to be added?
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_APIas deprecated in the docs (platform-specific-csharp.md,uno-development/preprocessor-symbols.md), likeHAS_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 updatemigrating-to-uno-8.mdto 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_APIhas nothing to do with reference assemblies.HAS_UNO_SKIA/__UNO_SKIA__don't name a drawing backend.Uno.UIis 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 https://github.com/unoplatform/uno/pull/24554#discussion_r4132030918.
Source: unoplatform/uno