Skip to content

Update Uno Platform to 7.0 - #916

Draft
Sergio0694 wants to merge 6 commits into
mainfrom
sergio0694-update-uno-platform-7-0
Draft

Sergio0694 wants to merge 6 commits into
mainfrom
sergio0694-update-uno-platform-7-0

Conversation

@Sergio0694

Copy link
Copy Markdown
Member

Fixes

Replaces #908 (which predates the UAP/Uno-for-UWP removal and the build infra simplification). Strictly updates the Uno Platform to 7.0, keeping the existing WASM-only sample head (no mobile/desktop heads).

PR Type

  • Build or CI related changes
  • Other... Uno Platform 7.0 update

What is the current behavior?

Components and the WASM sample head build against Uno 5.5.

What is the new behavior?

  • Bumps the tooling submodule to the Uno 7.0 update (Update Uno Platform to 7.0 Tooling-Windows-Submodule#332, currently an unmerged branch): the WASM head is an Uno.Sdk/7.0.22 project targeting net10.0-browserwasm, libraries stay on net10.0 with Uno.WinUI 7.0.65, and the head needs the wasm-tools workload.
  • Components, ported selectively from Adopt Uno.Sdk tooling on Uno Platform 7.0 #908:
    • DependencyObjectExtensions: removed the HAS_UNO class, DependencyObject constraint branches (DependencyObject is a class in Uno 7; it was only an interface in Uno 5 and older).
    • CompositionExtensions: don't pass a null easing function to InsertExpressionKeyFrame.
    • IsXamlRootAvailable (Segmented, SettingsControls, TokenizingTextBox), ThemeListener and FocusTracker: use the real API on WINUI3 instead of an ApiInformation probe of Windows.UI.Xaml.* types (always false on Uno; on wasdk it now also reports XamlRoot as available on Windows builds before 1903, consistent with Behaviors/ApiInformationHelper). UWP code paths are unchanged.
    • #pragma warning disable CS0618 on the parameterless FocusManager.GetFocusedElement() fallbacks (obsolete on WinUI 3/Uno).
    • Uno.Microsoft.Xaml.Behaviors.Interactivity.WinUI 3.0.3 -> 4.0.1 (Behaviors, SettingsControls samples).
    • Not ported from Adopt Uno.Sdk tooling on Uno Platform 7.0 #908: RichSuggestBox (UWP/wasdk only, never compiled for Uno), MultiTarget/Extras/win32/linux/mobile changes.
  • CI: installs wasm-tools (from the repo root so global.json pins the SDK band) in the wasm build leg and the wasm-linux job; the wasm leg builds from a subst drive (parent of the workspace) because the head's wwwroot/package_<hash>/... paths approach MAX_PATH. Docs mention the workload.

Validated locally

  • Release (TreatWarningsAsErrors + EnforceCodeStyleInBuild): all-components solution for wasm including the WASM gallery head, and Build-Toolkit-Components for wasdk, uwp and android/ios/macos: 0 errors.
  • The gallery head runs in a browser and the Segmented sample renders. Docs render as plain text for now (the DOM-based markdown polyfill was removed in tooling).

Known follow-ups

  • Re-point the tooling submodule to tooling main once Update Uno Platform to 7.0 Tooling-Windows-Submodule#332 merges.
  • Tooling's pinned CommunityToolkit.* preview packages were built against Uno 5.5 and need to be bumped to packages produced by this PR's CI.
  • Markdown rendering in the Uno gallery.

PR Checklist

  • Created a feature/dev branch in your fork (vs. submitting directly from a commit on main) (branch in the repo itself)
  • Based off latest main branch of toolkit
  • Tested code with current supported SDKs
  • Tests for the changes have been added (if applicable)
  • Contains NO breaking changes

Sergio0694 and others added 6 commits December 5, 2026 16:52
Bump the tooling submodule to the Uno 7.0 update, adapt the components that no longer compile against Uno 7, bump Uno.Microsoft.Xaml.Behaviors.Interactivity.WinUI to 4.0.1, and update CI to install the wasm-tools workload for the Uno WebAssembly head.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Also add the PullRequests feed to nuget.config, as the Labs MarkdownTextBlock preview package used by the Uno head comes from it.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
… again

The source is now defined in nuget.config, so adding it by name fails.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

This branch has not been deployed

No deployments
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