Skip to content

Remove the legacy UNO_REFERENCE_API, HAS_UNO_SKIA and __UNO_SKIA__ symbols (8.0) #24807

Open

Description

@MartinZikmund

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:

  1. 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.
  2. Optionally, add a build message when project code still uses them, so migration isn't silent.
  3. 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

  1. added
    kind/enhancement
    triage/untriaged
    on Sep 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/enhancementtriage/untriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions