Skip to content

feat: Add .desktop.cs suffix and __DESKTOP__ constant (backport #20480) - #20606

Closed
mergify[bot] wants to merge 5 commits into
release/stable/6.0from
mergify/bp/release/stable/6.0/pr-20480
Closed

mergify[bot] wants to merge 5 commits into
release/stable/6.0from
mergify/bp/release/stable/6.0/pr-20480

Conversation

@mergify

@mergify mergify Bot commented May 27, 2025

Copy link
Copy Markdown
Contributor

GitHub Issue (If applicable): closes #20344

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the current behavior?

There is no clear way to target desktop-only with #if or .cs

What is the new behavior?

  • New __DESKTOP__ target
  • New .desktop.cs suffix
  • Existing __SKIA__ and .skia.cs still target desktop, but should probably be removed from Sdk in the next major, or should instead target all skia renderer targets
  • Removed docs mentions of reference and crossruntime as they are no longer too meaningful for end users

PR Checklist

Please check if your PR fulfills the following requirements:

(cherry picked from commit f64ab72)
(cherry picked from commit 862e54e)

# Conflicts:
#	doc/articles/platform-specific-csharp.md
(cherry picked from commit 5038cad)
@mergify

mergify Bot commented May 27, 2025

Copy link
Copy Markdown
Contributor Author

Cherry-pick of 862e54e has failed:

On branch mergify/bp/release/stable/6.0/pr-20480
Your branch is ahead of 'origin/release/stable/6.0' by 2 commits.
  (use "git push" to publish your local commits)

You are currently cherry-picking commit 862e54e7a3.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   doc/articles/controls/SKCanvasElement.md
	modified:   doc/articles/features/using-the-uno-sdk.md

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   doc/articles/platform-specific-csharp.md

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

@mergify mergify Bot added the conflicts label May 27, 2025
@github-actions github-actions Bot added platform/macos 🍏 Categorizes an issue or PR as relevant to the macOS platform area/skia ✏️ Categorizes an issue or PR as relevant to Skia platform/wpf 🪟 Categorizes an issue or PR as relevant to WPF kind/documentation platform/x11 🐧 Categorizes an issue or PR as relevant to X11 labels May 27, 2025
@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 166974 has failed on Uno.UI - docs.

@jeromelaban

Copy link
Copy Markdown
Member

Does not need to be backported

@jeromelaban
jeromelaban deleted the mergify/bp/release/stable/6.0/pr-20480 branch May 27, 2025 20:24
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area/skia ✏️ Categorizes an issue or PR as relevant to Skia kind/documentation platform/macos 🍏 Categorizes an issue or PR as relevant to the macOS platform platform/wpf 🪟 Categorizes an issue or PR as relevant to WPF platform/x11 🐧 Categorizes an issue or PR as relevant to X11

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants