Skip to content

Adopt Uno.Sdk tooling (Uno 6.x) for the WinUI 3 gallery#862

Draft
MartinZikmund wants to merge 2 commits into
CommunityToolkit:mainfrom
MartinZikmund:mzikmund/uno6sdk
Draft

Adopt Uno.Sdk tooling (Uno 6.x) for the WinUI 3 gallery#862
MartinZikmund wants to merge 2 commits into
CommunityToolkit:mainfrom
MartinZikmund:mzikmund/uno6sdk

Conversation

@MartinZikmund

Copy link
Copy Markdown
Contributor

Transitions the toolkit to the Uno.Sdk-based tooling, building the WinUI 3 sample gallery through the unified Uno.Sdk head (desktop + browserwasm + android) while keeping Uno.UI 5.x for UWP / WinUI 2.

Depends on the tooling submodule PR: CommunityToolkit/Tooling-Windows-Submodule#305 (which in turn depends on #304). The submodule pointer here references that branch and will move to the merged commit once #305 lands.

Changes

  • Bump the tooling submodule to the Uno.Sdk-based version.
  • Fix warnings (treated as errors) surfaced by Uno 6.x when the Uno.Sdk head compiles the components for net9.0:
    • CS0618: FocusManager.GetFocusedElement() is obsolete on WinUI 3/Uno — suppress the no-arg fallback used where XamlRoot is unavailable (UWP).
    • IL2087: trim analysis on generic DependencyProperty.Register in the Animations base types (the type is only used as DP metadata).
  • CI: build the Uno.Sdk head for WinUI 3 — add an unosdk entry to the Windows build matrix (excluding winui3 + wasm) and replace the wasm-linux job with uno-linux (browserwasm + desktop). WinUI 2 (UWP) keeps the legacy Uno.UI 5.x wasm head.

Both Uno.Sdk heads (net9.0-desktop and net9.0-browserwasm) build end-to-end against the toolkit components.

🤖 Generated with Claude Code

MartinZikmund and others added 2 commits June 17, 2026 16:15
Bump the tooling submodule to the Uno.Sdk-based version and resolve the
warnings (treated as errors) that the Uno 6.x upgrade surfaces when the
Uno.Sdk gallery head compiles the components for net9.0:

- CS0618: FocusManager.GetFocusedElement() is obsolete on WinUI 3/Uno;
  suppress the no-arg fallback used where XamlRoot is unavailable (UWP).
- IL2087: trim-analysis on generic DependencyProperty.Register in the
  Animations base types; suppress (the type is only used as DP metadata).

The Uno.Sdk head (net9.0-desktop and net9.0-browserwasm) now builds
end-to-end against the toolkit components.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Mirror the tooling CI's Uno.Sdk handling:
- Windows build matrix: add an `unosdk` entry (WinUI 3), exclude
  winui3+wasm (now covered by the Uno.Sdk head). Install workloads
  directly and build the Uno.Sdk head csproj with dotnet.
- Replace the wasm-linux job with uno-linux: build the Uno.Sdk head
  for browserwasm and desktop instead of the legacy Uno.UI Wasm head.

WinUI 2 (UWP) keeps the legacy Uno.UI 5.x wasm head.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant