Skip to content

chore!: Retarget Uno.ShowMeTheXAML to Uno Platform 7.0 - #33

Merged
agneszitte merged 1 commit into
masterfrom
dev/mazi/uno7-retarget
Sep 9, 2026
Merged

agneszitte merged 1 commit into
masterfrom
dev/mazi/uno7-retarget

Conversation

@MartinZikmund

@MartinZikmund MartinZikmund commented Sep 9, 2026 •

Copy link
Copy Markdown
Member

Description

Retargets Uno.ShowMeTheXAML to Uno Platform 7.0 (Uno.WinUI 7.0.0-dev.684, net10.0).

The published package binds Uno.UI.Toolkit, which Uno 7.0 renamed to Uno.UI.Extras and no longer ships. The GlobalStaticResources generated for Themes/Generic.xaml calls into it, so an Uno 7 app that references this package compiles and then dies at startup:

System.IO.FileNotFoundException: Could not load file or assembly 'Uno.UI.Toolkit, Version=255.255.255.255'
   at SkiaSharp.Views.Windows.GlobalStaticResources.Initialize()
   at Uno.Themes.Samples.GlobalStaticResources.Initialize()

This is currently the sole cause of the three failing Runtime Tests / Hosting Smoke jobs on the Uno 7 retarget of Uno.Themes (unoplatform/Uno.Themes#1722). The latest published version (2.0.0-dev0026) has the same problem, so bumping does not help — it needs this rebuild.

Changes

Change Why
Uno.WinUI 6.4.242 → 7.0.0-dev.684 The whole point — rebuild against Uno 7 so the generated code binds Uno.UI.Extras.
TFMs net9.0* → net10.0* Uno 7 libraries target .NET 10.
Drop net9.0-macos and net9.0-maccatalyst Uno 7 ships no Uno.Common.MacCatalyst.targets or macOS equivalent, and Uno.WinUI carries no buildTransitive folder for either.
Microsoft.WindowsAppSDK 1.8 → 2.4.0, Microsoft.Windows.SDK.BuildTools → 10.0.28000.2526 Matches the WinAppSdk / WinAppSdkBuildTools groups in src/Uno.Sdk/packages.json. This leg excludes Uno.WinUI by condition so it does not inherit the bump, and would otherwise declare a 1.8 floor while running against 2.4.
Add nuget.config Uno 7.0 dev builds are published to the uno-dev feed, not nuget.org.
+semver:major in the commit body GitVersion (mode: Mainline, master: increment: Minor) parses neither the conventional-commit ! nor a BREAKING CHANGE: footer. Without it this publishes as 2.0.0-dev00NN — the line every Uno 6.x consumer is pinned to.

No source changes were needed — the __UNO__-conditional code only uses Microsoft.UI.Xaml types that survive the Uno 7 breaking changes.

Note

Both the nuget.config and the -dev.684 pin are temporary. At Uno 7.0 GA they revert to nuget.org plus a stable Uno.WinUI version. Tracked so the dev-feed dependency doesn't quietly become permanent.

Note

The major bump carries Uno.ShowMeTheXAML.MSBuild to 3.0 as well, since it shares the version line — no content change there, but consumers pin both packages, so downstream sample props need both lines bumped.

Verification

  • All four target frameworks build: 0 errors (net10.0, net10.0-ios, net10.0-android, net10.0-windows10.0.19041.0).
  • Disassembled each output assembly: every Uno target now references Uno.UI.Extras and no longer references Uno.UI.Toolkit — the condition that was crashing consumers.

Not verified: no runtime/device pass. The WPF projects (ShowMeTheXAML.csproj, *.AvalonEdit) are untouched and unverified — they live in ShowMeTheXAML.sln, while CI builds only Uno.ShowMeTheXAML.sln (the Uno library plus the netstandard2.0 MSBuild task).

🤖 Generated with Claude Code

https://claude.ai/code/session_01TgSByQzKDng9vt79kCkRTC

Copilot AI lite review requested due to automatic review settings September 9, 2026 10:40

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The PR description is missing the required GitHub issue link (Fixes/Closes/Related to …) or the explicit “no related issue” maintenance note.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Retargets the Uno.ShowMeTheXAML library to Uno Platform 7 by moving Uno builds to .NET 10 TFMs and updating the Uno.WinUI dependency to a Uno 7 dev build, preventing consumers from crashing at startup due to stale Uno.UI.Toolkit bindings.

Changes:

  • Retarget Uno TFMs from net9.0* to net10.0* and drop net*-macos / net*-maccatalyst from the multi-target list.
  • Update Uno.WinUI package reference to 7.0.0-dev.679.
  • Add a repo-level nuget.config to include the uno-dev feed needed to restore Uno 7 dev packages.

Note: The PR description links a PR (unoplatform/Uno.Themes#1722) but does not include a required “Fixes/Closes/Related to …/Note: No related issue …” issue footer; please add the appropriate issue link (or maintenance note) before merging.

File summaries
File Description
ShowMeTheXAML/Uno.ShowMeTheXAML.csproj Updates Uno TFMs to net10 and bumps Uno.WinUI to a Uno 7 dev build; drops macOS/MacCatalyst TFMs.
nuget.config Adds uno-dev feed (with a cleared source list) to restore Uno 7 dev packages.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread ShowMeTheXAML/Uno.ShowMeTheXAML.csproj Resolved
+semver:major

BREAKING CHANGE: the Uno target frameworks move from net9.0 to net10.0, and
the net9.0-macos and net9.0-maccatalyst targets are dropped. Consuming apps
must target .NET 10 or later.

The published package binds `Uno.UI.Toolkit`, which Uno 7.0 renamed to
`Uno.UI.Extras` and no longer ships. The generated `GlobalStaticResources`
for `Themes/Generic.xaml` calls into it, so an Uno 7 app that references this
package compiles and then dies on startup:

    System.IO.FileNotFoundException: Could not load file or assembly
    'Uno.UI.Toolkit, Version=255.255.255.255'
       at SkiaSharp.Views.Windows.GlobalStaticResources.Initialize()

This currently blocks the Uno 7 retarget of uno.themes, whose sample apps
reference it.

- `Uno.WinUI` 6.4.242 -> 7.0.0-dev.684, and library TFMs net9.0 -> net10.0.
- Drop macOS and MacCatalyst: Uno 7 ships no `Uno.Common.MacCatalyst.targets`
  or macOS equivalent, and the package carries no `buildTransitive` folder for
  either, so neither can build.
- Align the Windows leg with Uno 7: `Microsoft.WindowsAppSDK` 1.8 -> 2.4.0 and
  `Microsoft.Windows.SDK.BuildTools` -> 10.0.28000.2526, matching the WinAppSdk
  and WinAppSdkBuildTools groups in `src/Uno.Sdk/packages.json`. That leg
  excludes `Uno.WinUI` by condition, so it does not inherit the bump and would
  otherwise keep declaring a 1.8 floor while running against 2.4.
- Add `nuget.config`: Uno 7.0 dev builds are published to the uno-dev feed
  rather than nuget.org, so the reference cannot resolve without it. Both this
  and the `-dev.684` pin revert to nuget.org and a stable version at 7.0 GA.

`+semver:major` is required because GitVersion parses neither the conventional
commit `!` nor a `BREAKING CHANGE:` footer. Without it this publishes as
2.0.0-dev00NN, onto the line every Uno 6.x consumer is pinned to.

No source changes were needed - the Uno-conditional code only uses
`Microsoft.UI.Xaml` types that survive.

Verified by building all four target frameworks (0 errors) and disassembling
the output: every Uno target now references `Uno.UI.Extras` and no longer
references `Uno.UI.Toolkit`.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01TgSByQzKDng9vt79kCkRTC
@agneszitte
agneszitte merged commit 79dfda1 into master Sep 9, 2026
2 checks passed
agneszitte added a commit to unoplatform/Uno.Themes that referenced this pull request Sep 9, 2026
2.0.0-dev0015 binds Uno.UI.Toolkit, which Uno 7.0 renamed to Uno.UI.Extras
and no longer ships, so the sample apps died at startup in the Hosting Smoke
and Runtime Tests jobs:

    System.IO.FileNotFoundException: Could not load file or assembly
    'Uno.UI.Toolkit, Version=255.255.255.255'
       at SkiaSharp.Views.Windows.GlobalStaticResources.Initialize()

3.0.0-dev0001 is the Uno 7.0 rebuild from unoplatform/ShowMeTheXAML#33,
published to nuget.org. Both packages move together since they share a
version line.

servicing/8.0 stays on 2.0.0-dev0015: that line is Uno 6.x-compatible and
3.0.0 targets net10.0 only.
MartinZikmund pushed a commit to unoplatform/Uno.Themes that referenced this pull request Sep 10, 2026
2.0.0-dev0015 binds Uno.UI.Toolkit, which Uno 7.0 renamed to Uno.UI.Extras
and no longer ships, so the sample apps died at startup in the Hosting Smoke
and Runtime Tests jobs:

    System.IO.FileNotFoundException: Could not load file or assembly
    'Uno.UI.Toolkit, Version=255.255.255.255'
       at SkiaSharp.Views.Windows.GlobalStaticResources.Initialize()

3.0.0-dev0001 is the Uno 7.0 rebuild from unoplatform/ShowMeTheXAML#33,
published to nuget.org. Both packages move together since they share a
version line.

servicing/8.0 stays on 2.0.0-dev0015: that line is Uno 6.x-compatible and
3.0.0 targets net10.0 only.
rajamatt added a commit to unoplatform/Uno.Themes that referenced this pull request Sep 23, 2026
* Version bump after 7.0 release branch (#1686)

* docs: add v7 migration section to upgrading guide (#1690)

* docs: add v7 migration section to upgrading guide

* docs: simplify sections

* docs: remove unecessary mentions

* docs: fix for linter

* Version bump after 7.1 release branch (#1691)

* feat(samples): host all theme sample apps in one ThemesSampleApp wrapper head (#1693)

Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Co-authored-by: Claude Fable 5 <[email protected]>

* docs(samples): link filed upstream issues from ALC teardown sweeps (#1696)

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>

* feat: Color Fidelity (#1697)

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Co-authored-by: Claude Fable 5 <[email protected]>

* feat!: add DefaultSpacing base unit and make Density a pure mode (#1701)

Co-authored-by: Claude Fable 5 <[email protected]>

* feat: add instance-based Application.GetTheme() extension (#1699)

Co-authored-by: Claude Fable 5 <[email protected]>

* ci: Build and publish from servicing/* branches

A servicing/* branch continues a previous version line after master has moved
on to a newer one, so it needs to build and publish dev packages the same way
master does.

Adds servicing/* to the build and PR triggers, the Publish_Dev stage condition,
the dev-feed push step and the NBGV publicReleaseRefSpec. Every change is an
additional branch pattern inside an existing or(), so master's own behaviour is
unchanged.

This already exists on servicing/7.2, which is how it publishes today. Bringing
it to master makes the pattern canonical, so the next servicing branch inherits
it instead of having to rediscover the edits.

* ci: Validate conventional commits on servicing/* branches

'Validate Conventional Commits' is a required status check on master. Adding
servicing/* here is a prerequisite for giving servicing branches the same
branch protection as master -- without it the check never reports and a PR
into a servicing branch could never be merged.

* feat!: collapse the root typeface tokens into a single DefaultFontFamily (#1710)

Co-authored-by: Claude Fable 5 <[email protected]>
Co-authored-by: Claude Fable 5.1 <[email protected]>
Co-authored-by: Derek Raven <[email protected]>

* feat(themes): add DefaultFontFamily to BaseTheme and re-resolve the font override

Stack 2/2 — sits on the single-typeface token collapse (feat!: collapse
the root typeface tokens into a single DefaultFontFamily). Closes #1705.

- DefaultFontFamily DP on BaseTheme: one FontFamily generates the
  DefaultFontFamily root token and all 19 type-scale *FontFamily keys
  (GenerateFontFamilyScale + ThemesConstants.TypefaceScaleKeys), plus each
  design system's own per-control *FontFamily aliases (FontFamilyAliasKeys
  on MaterialTheme/SimpleTheme), under Default/Light/HighContrast
- the font override is resolved in UpdateSource() and merged last; a
  URI-backed override is re-read from its Source when a hot reload
  invalidates it, so edits reach the theme (fixes #1705) while unrelated
  rebuilds reuse the resolved copy; duplicated merge removed from
  MaterialTheme/SimpleTheme
- override load/re-read fallbacks emit a guarded LogWarning with the URI
- SemanticThemeHelper.DefaultFontFamily accessor
- FontFamilyTunerControl on the Design Tokens page sets the family on the
  running theme and restyles already-rendered text via a RequestedTheme flip
- runtime tests: Given_DefaultFontFamily (generation, alias keys, every
  SharedTypography slot, appearance coverage, unset/clear/replace, override
  precedence, #1705 re-resolution through the hot-reload entry point),
  Given_FontFamilyTuner
- design-tokens doc: property row + property-based Typography Font Swap

Adapted to the single-token base: the generator emits DefaultFontFamily
instead of the removed TypefacePlain/TypefaceBrand pair, and the tuner
offers variable-font entry points so *FontWeight tokens keep resolving.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BJokqo5p49ysm5TtcanEWt
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01ER3xjPyWwDRhiBmYgPojMu

* fix(simple): resolve button typeface aliases through ThemeResource

- `SimpleButtonFontFamily` / `SimpleToggleButtonFontFamily` are regenerated by the
  `DefaultFontFamily` layer, but the Button and ToggleButton setters read them with
  `{StaticResource}`, which resolves once at parse time: the keys followed the property
  while the rendered controls stayed on Inter.
- Switch the four setters to `{ThemeResource}`, matching every other `*FontFamily` setter
  in Material v2 and Simple (`DatePickerFlyoutPresenterFontFamily` was already correct).
- Add `Given_DefaultFontFamily.When_DefaultFontFamilyChanges_Then_StyledButtonFollows`,
  asserting the rendered `FontFamily` on a Button and a ToggleButton — red before the fix,
  green after; a token lookup cannot see this gap.
- Record the seam rule in `specs/lessons.md` and the fix in the spec 09 progress notes.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gjq1PTgqHq3BtLLJbwiguk

* fix(simple): declare the button typeface aliases inside ThemeDictionaries

SimpleButtonFontFamily and SimpleToggleButtonFontFamily were declared at the
top level of Button.xaml / ToggleButton.xaml, so the generated font layer could
not reach them and a runtime DefaultFontFamily change left them on their
parse-time snapshot.

BaseTheme sets its own Source to mergedpages.xaml (BaseTheme.cs:505), so a
top-level key there is one of the theme dictionary's own resources — and own
resources beat MergedDictionaries. The generated layer arrives through
AddThemeDictionary, i.e. merged, so it can shadow a themed declaration but never
a non-themed one. DatePickerFlyoutPresenterFontFamily passed the same test
because it is declared themed, as are all twelve of Material's alias keys.

Declaring both aliases in the Light and Default blocks the two files already
have puts them where the generated layer can shadow them. Mirroring the aliases
into the generated dictionary's top level was tried first and does not work —
that dictionary is merged; its non-themed entries lose to the theme's own.

Depends on 0f9976c: with the setters still on {StaticResource} this move would
have left a parse-time reference dangling. All four consumers now use
{ThemeResource}, so the two commits are complementary halves.

Simple runtime tests, net10.0-desktop Release headless: 256 cases, 255 passed,
0 failed, 1 pre-existing skip (was 253/2/1). No new warnings.

* fix(themes): read generated spacing and shape tokens through ThemeResource

- Simple and Material v2 control styles read the runtime-generated `Space*` / `Radius*`
  tokens — directly or through per-control aliases such as `SimpleButtonCornerRadius` and
  `MaterialContentDialogPanelPadding` — with `{StaticResource}`, which snapshots at parse
  time, so a runtime `DefaultSpacing` / `DefaultDensity` / `DefaultCornerRadius` change
  regenerated the tokens but never reached a control.
- Rewrite all 98 such reads (78 Simple, 20 Material v2; 22 files) to `{ThemeResource}`,
  found by an alias-closure sweep rooted at the generated keys. Density constants are
  fixed values and are left as they are.
- Add `Given_DesignTokens.When_ScaleMeasuresChangeAtRuntime_Then_RealizedButtonFollows`
  (Simple head) and `…_RealizedContentDialogFollows` (Material head): red before, green
  after, both against the application theme and restored in `finally`.
- `doc/design-tokens.md`: the scale measures are runtime-settable, with the
  already-realized caveat and the theme-change-pass route, matching `DefaultFontFamily`.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gjq1PTgqHq3BtLLJbwiguk

* ci: Set version to '9.0-dev.{height}'

Uno.Themes 8.0 has not shipped a stable release yet, so the 8.0 line stays
open on servicing/8.0 for the Uno 6.x-compatible packages. master moves to
9.0 for the Uno Platform 7.0 retarget, which is binary breaking.

* chore!: Target Uno.Sdk.Private 7.0 and net10.0

BREAKING CHANGE: library target frameworks move from net9.0 to net10.0.
Consuming apps must target .NET 10 or later.

Move every library project from `Uno.Sdk` to `Uno.Sdk.Private`, since no
public `Uno.Sdk` 7.x exists yet, and pin `7.0.0-dev.679` — the same build
`uno.toolkit.ui` targets, so the two libraries agree on the Uno surface.

Both `global.json` files have to move together. `src/samples/global.json`
is the one that governs a sample head built directly (`dotnet publish
src/samples/<head>`, which is what CI runs); the root file only governs a
solution build, where the SDK is resolved from the entry point. Leaving the
nested file on 6.7.0-dev.815 built the libraries against Uno 7 and the sample
heads against Uno 6.

`7.0.0-dev.679` is published to the shared `unoplatformdev` feed, so no
additional package source is required.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01TgSByQzKDng9vt79kCkRTC

* fix!: Retarget Uno.UI.Toolkit namespaces for BC53

BREAKING CHANGE: the `Uno.UI.Toolkit` xmlns is gone. XAML copied from these
styles must use `using:Uno.UI.Xaml.Controls` for `ElevatedView` and
`CommandBarExtensions`, `using:Uno.UI.Behaviors` for `VisibleBoundsPadding`,
and `using:Uno.UI.Xaml` for `UIElementExtensions`.

Uno 7.0 renames the `Uno.UI.Toolkit` assembly to `Uno.UI.Extras` and keeps
its types in their natural namespaces rather than moving them as a block, so
the single `toolkit` xmlns splits three ways.

`using:Uno.UI.Extras` is not a valid replacement, even though it compiles:
that namespace exists but its only public type is the generated
`GlobalStaticResources`, so the XAML generator emits type references to
`Uno.UI.Extras.ElevatedView` and `Uno.UI.Extras.VisibleBoundsPadding`, which
do not exist. Every affected template would fail at runtime instead of at
build time.

Map each usage to the namespace that actually owns the type, reusing the
`uno` prefix this repo already binds to `Uno.UI.Xaml.Controls`:

- `ElevatedView`, `CommandBarExtensions` -> `uno`
- `VisibleBoundsPadding`                 -> `unobehaviors`
- `UIElementExtensions`                  -> `unoxaml`

Verified by disassembling the built assemblies: the emitted type references
are now `Uno.UI.Xaml.Controls.ElevatedView` and
`Uno.UI.Behaviors.VisibleBoundsPadding`.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01TgSByQzKDng9vt79kCkRTC

* fix: Match a template child with a type pattern (BC26)

`GetTemplateChild<TControl>` constrained `TControl` to `class, DependencyObject`
under `HAS_UNO`. Uno 7.0 makes `DependencyObject` a class, so that pair is now
illegal (CS0450) — but simply dropping `class` breaks the other direction,
because `child as TControl` then needs a class constraint of its own (CS0413)
wherever `DependencyObject` is still an interface.

A type pattern needs no class constraint at all, so it compiles either way and
removes the dependency on how `DependencyObject` is declared.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01TgSByQzKDng9vt79kCkRTC

* fix(samples): Build the Android host through UnoPlatformHostBuilder

Uno 7.0 turns `NativeApplication.CreateHost()` into an abstract member and
drops the `Func<Application>` constructor overload, so the Android heads no
longer compile:

    error CS0534: 'Application' does not implement inherited abstract member
    'NativeApplication.CreateHost()'

Android has no managed entry point, so `CreateHost()` is where the host is
built — the equivalent of `Main` on the other targets.

Verified by compiling MaterialSampleApp for net10.0-android. A separate
pre-existing manifest issue remains on that target: the SDK's default
minSdkVersion 21 is below the 23 required by androidx.lifecycle.runtime.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01TgSByQzKDng9vt79kCkRTC

* chore(deps): Bump Uno.ShowMeTheXAML to 3.0.0-dev0001

2.0.0-dev0015 binds Uno.UI.Toolkit, which Uno 7.0 renamed to Uno.UI.Extras
and no longer ships, so the sample apps died at startup in the Hosting Smoke
and Runtime Tests jobs:

    System.IO.FileNotFoundException: Could not load file or assembly
    'Uno.UI.Toolkit, Version=255.255.255.255'
       at SkiaSharp.Views.Windows.GlobalStaticResources.Initialize()

3.0.0-dev0001 is the Uno 7.0 rebuild from unoplatform/ShowMeTheXAML#33,
published to nuget.org. Both packages move together since they share a
version line.

servicing/8.0 stays on 2.0.0-dev0015: that line is Uno 6.x-compatible and
3.0.0 targets net10.0 only.

* chore(deps): Bump Uno.Sdk.Private to 7.0.0-dev.697

`Uno.ShowMeTheXAML` 3.0.0-dev0001 depends on `Uno.WinUI` >= 7.0.0-dev.684,
so pinning the SDK at 7.0.0-dev.679 fails every head at restore:

    error NU1605: Detected package downgrade: Uno.WinUI from 7.0.0-dev.684
    to 7.0.0-dev.679

7.0.0-dev.697 also carries the XAML generator fix from unoplatform/uno#24457,
which clears the CS0407 `_View` return-type errors that blocked
`Uno.Simple.WinUI` on net10.0-android and net10.0-ios. Verified the fix is in
this package: its nuspec pins commit ee8ffda8, and the PR's merge commit
d5b9af48 is an ancestor of it.

Both `global.json` files move together, since the nested one governs a sample
head built directly, which is what CI does.

Verified by publishing the Material desktop head with the CI command: 0 errors.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TgSByQzKDng9vt79kCkRTC

* fix(samples): Raise the Android minimum OS version to 24

The AndroidX libraries Uno 7 pins require API 23, so manifest merge fails on
every Android head:

    error XAAMM0000: uses-sdk:minSdkVersion 21 cannot be smaller than version
    23 declared in library [...] androidx.lifecycle.runtime

Uno raised its own SDK default to 24.0 in 4a29fb6a70, but this repo sets
`SupportedOSPlatformVersion` explicitly in `PlatformItemGroups.props`, and the
SDK default is guarded by `Condition="$(SupportedOSPlatformVersion) == ''"`.
The repo value therefore always wins and no package bump can fix it here.

Use 24.0 to match the new SDK default rather than the bare minimum of 23.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TgSByQzKDng9vt79kCkRTC

* refactor!: Drop markup gated on the removed xamarin and skia prefixes

BREAKING CHANGE: the `MaterialMUXNavigationViewResetSplitViewStyle` resource
key is removed. It was declared `xamarin:`-only and is unreferenced in this
repository.

Uno 7.0 reworked the conditional XAML prefix vocabulary. The surviving set is
`android`, `ios`, `tvos`, `desktop`, `wasm`, `winappsdk`/`win` and their `not_`
forms; `xamarin`, `skia`, `macos`, `netstdref`, `not_mux` and `legacy` are gone.

Because every affected file also listed those prefixes in `mc:Ignorable`, the
markup they gated is now silently discarded rather than reported — it compiles
clean and applies on no platform at all. It was written for the native view
rendering that 7.0 removed, so there is nothing left for it to do:

- `<xamarin:Style>` / `<xamarin:VisualState>` / `<xamarin:Setter>` and the
  matching animation blocks in the Material and Cupertino control styles.
- `xamarin:ContentTemplateSelector`, `xamarin:Glyph`, `skia:Opacity`.
- `xamarin:Style="{StaticResource NativeDefaultFrame}"` in the samples shell —
  `NativeDefaultFrame` no longer exists in any Uno 7 assembly.

`xamarin:UseNativeStyle` is dropped with the rest, even though
`DatePicker.UseNativeStyle` and `TimePicker.UseNativeStyle` are still public:
the attribute only ever meant anything for the native pickers.

Deleting rather than remapping to `not_win:` keeps the change behavior
preserving. `not_win` covers desktop and WebAssembly as well as mobile, so a
remap would activate markup on platforms it never applied to.

Verified: all three desktop sample heads publish with 0 errors, all 17 touched
files parse as well formed XML, and the removed resource key has no remaining
references.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TgSByQzKDng9vt79kCkRTC

* refactor: Sweep the conditional XAML prefixes for Uno 7

Uno 7 reworked the conditional prefix vocabulary, and this repo stacks a second
vocabulary of its own on top (`mobile`, `uwp`/`winui`, `lottie_*`, defined in the
four `*-common.props`). Resolution is keyed on the prefix NAME, not the URI, and a
prefix in neither the include nor the exclude list is silently discarded when it
appears in `mc:Ignorable` — so dead markup compiles clean and applies nowhere.

Three behavior-preserving passes.

1. Remove 122 unused prefix declarations across 59 files, with the matching
   `mc:Ignorable` tokens, dropping `mc:Ignorable` and `xmlns:mc` together where
   nothing was left. Only declarations with no corresponding usage were touched.

2. Collapse `macos:` / `not_macos:`. `macos` is in neither vocabulary, so its 16
   values were discarded; `not_macos` survives only because it happens to be
   declared as the presentation namespace rather than `http://uno.ui/not_macos`,
   which is why its values are the ones shipping. Delete the `macos` half, unwrap
   the `not_macos` half. The two must move together: at v1/PasswordBox.xaml,
   v1/TextBox.xaml and v2/TextBox.xaml, removing only `not_macos` would leave the
   control with no Padding at all.

   Also corrects doc/styles/TextBox.md, which documented `FilledTextBoxPadding` as
   the dead macOS value `16,7`; every platform actually gets `16,8`.

3. Collapse `uwp:` / `winui:`. Every library sets `FrameworkLineage=WinUI`, so the
   UWP arm is unreachable. `winui:UriSource` is what selects the Lottie assets, so
   it is unwrapped rather than deleted — removing both halves would strip
   `UriSource` from all four `LottieVisualSource` resources. The unreachable
   `<Choose>` blocks go with them, along with the `IsXamarinIOS`/`IsMonoAndroid`/
   `IsXamarinMac` LinkerConfig groups, the MacCatalyst plumbing and the
   `net10.0-maccatalyst` expansion, none of which Uno 7 can reach.

`ios:`, `android:`, `mobile:`, `win:`/`not_win:` and `lottie_not_win:` are all
still live and are left alone. `todo:` and the `contract*` ApiInformation
predicates are different mechanisms and are out of scope.

Verified: all four desktop sample heads publish with 0 errors, every touched file
parses as well formed XML, and no prefix that is still used lost its declaration.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TgSByQzKDng9vt79kCkRTC

* refactor!: Retire the native-era platform forks in the Material styles

BREAKING CHANGE: the `MaterialTimePickerFlyoutPresenterStyle` and
`MaterialCommandBarElevation` resource keys are removed. Consumers using
`BasedOn` or `StaticResource` against either must drop the reference.

Uno 7.0 renders iOS and Android through Skia, so the `ios:` and `android:`
prefixes still apply but the native rendering they compensated for is gone.
These forks all had a native premise and no longer have one.

- CheckBox glyph nudge. The six `mobile:Margin="0,2,0,0"` offsets existed
  because the native renderer placed the glyph differently. All platforms now
  share the alignment commit acfb64b chose for the managed renderers.

- CheckBox press ripple. `DoubleAnimationUsingKeyFrames` was worked around on
  iOS for issue #361 with a plain `DoubleAnimation` in CommonStates. Uno 7
  deleted the Apple animator entirely (`f193975907`), so iOS and desktop now
  run the same `DispatcherDoubleAnimator` and the workaround is dead weight.
  Removing it also gives iOS a ripple on the unchecked-press transitions,
  which only ever had a `not_ios:` branch, and restores the Windows
  storyboards that `mc:Ignorable="ios not_ios"` was stripping.

- TimePicker flyout. The iOS presenter framed a native picker that no longer
  exists, leaving a Cancel/Done bar over an empty body and a dangling
  `IosPickerFlyoutTextButtonStyle` reference. iOS now uses the default
  presenter, which works.

- CommandBar. The iOS `Height="NaN"` and the Android-only 4dp elevation both
  encoded native chrome. Height matches the other platforms, and elevation is
  dropped to match v2, which never had it.

- RadioButton press ripple. The keyframe animation was gated `wasm:` inside a
  library that builds no browserwasm target framework, so it shipped nowhere
  and desktop, WebAssembly and Windows had an empty storyboard. It is now
  unconditional, replacing the per-platform `android:` and `ios:` workarounds.

- Samples. The Button padding pair collapses to the value that ships, and the
  Android-only hero `MinHeight` goes; the page already adapts by width.

`ios:Margin` on the v2 PasswordBox reveal glyph is deliberately left in place:
nothing ties it to native path bounds, so it needs a look on a device rather
than an inference.

Verified: all four desktop sample heads publish with 0 errors and every touched
file parses as well formed XML.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TgSByQzKDng9vt79kCkRTC

* fix(ci): Pin the SDK to the one uno.check provisions

Provisioning wasm-tools downgrades the mono.toolchain.current manifest to
uno.check's own (10.0.101), while the pipeline installed the 10.0.102 SDK.
The workload resolver kept asking for Microsoft.NET.Runtime.MonoTargets.Sdk
10.0.2, which was never installed, so every net10.0-ios library build in the
packages stage failed with NETSDK1147. Invisible while the libraries targeted
net9.0, which resolves through the un-downgraded mono.toolchain.net9 manifest.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01MbHmxnFUWzjgeBQgdZGC1T

* chore: Target Uno.WinUI 7.0.0-dev.701

dev.701 moves Uno.UI.Adapter.Microsoft.Extensions.Logging onto
Uno.Core 5.0.0-dev.28, so the central 4.0.1 pins have to follow or
restore fails with NU1605.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01RjVqiGVHKGZyRLuy9SVMZi

* fix(samples): move samples to MSTest 4 with the runtime test engine (#1724)

The canary bumps Uno.UI.RuntimeTests.Engine to 2.0.0-dev.85, which requires
MSTest.TestFramework >= 4.3.3 while the samples pin 3.6.4. Restore fails with
NU1605 (warnings as errors) before anything compiles, in all 14 jobs:

  Warning As Error: Detected package downgrade: MSTest.TestFramework from
  4.3.3 to 3.6.4.
    MaterialSampleApp -> Uno.UI.RuntimeTests.Engine 2.0.0-dev.85 -> MSTest.TestFramework (>= 4.3.3)
    MaterialSampleApp -> MSTest.TestFramework (>= 3.6.4)

The engine and MSTest versions are coupled and have to move together: engine
2.0.0-dev.60 uses ExpectedExceptionAttribute, which MSTest 4 removed, and that
file ships as source inside the package, so it compiles into each sample app.
Bumping MSTest alone breaks the build on master.

MSTest 4 also introduces its own DescriptionAttribute, which is ambiguous with
System.ComponentModel.DescriptionAttribute used for the enum display names
(CS0104 in SourceSdk.cs and EnumHelper.cs).

Verified locally: with the canary's SDK versions (Uno.Sdk 7.0.0-dev.2,
Uno.Sdk.Private 7.0.0-dev.701) restore now succeeds on the Desktop and Android
heads, and master still builds with its own SDK pins.

Build: https://dev.azure.com/uno-platform/1dd81cbd-cb35-41de-a570-b0df3571a196/_build/results?buildId=233349&view=results

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>

* ci: enforce dotnet format and XAML Styler (#1725)

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>

---------

Co-authored-by: unodevops <[email protected]>
Co-authored-by: Steve Bilogan <[email protected]>
Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
Co-authored-by: DerekRaven <[email protected]>
Co-authored-by: agneszitte <[email protected]>
Co-authored-by: Agnès ZITTE <[email protected]>
Co-authored-by: Martin Zikmund <[email protected]>
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.

4 participants