Skip to content

build: drop MSBuild.Sdk.Extras, install wasm-tools on the WebAssembly jobs, fix the Navigation UI test build - #3151

Merged
kazo0 merged 5 commits into
mainfrom
dev/sb/build-hygiene
Aug 24, 2026
Merged

kazo0 merged 5 commits into
mainfrom
dev/sb/build-hygiene

Conversation

@kazo0

@kazo0 kazo0 commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

GitHub Issue (If applicable): split out of #3139

PR Type

  • Bugfix
  • Build or CI related changes

What is the current behavior?

Four small, unrelated build/CI defects, each invisible until something exercised the path:

  • MSBuild.Sdk.Extras is unmaintained (3.0.44 is its last release) and does not load under the .NET 10 SDK — Sdk.props derives a path from $(ToolDepsJsonGeneratorProject), which that SDK no longer defines (MSB4184). Only Uno.Extensions.Serialization.Http and .Refit use it, and neither needs anything it provides: three plain .cs files each, a single net9.0 TFM, none of the per-TFM globbing or Xamarin multi-targeting the SDK exists for.
  • UI Tests - WebAssembly never installs the wasm-tools workload. It has been passing on a warm Set Cache for dotnet install entry that happened to carry it; the SDK version is part of that cache key, so any bump evicts the entry and the job fails with UNOWA0001: Native WebAssembly assets were detected, but the wasm-tools workload could not be located.
  • Build and Deploy Job (Azure Static Web Apps) has the same gap and has been failing on main on every push: actions/setup-dotnet installs its own SDK inside unoplatform/wasm-build, and the workload belongs to the SDK, not to the image.
  • Uno.Extensions.Navigation.WinUI.Tests does not compile on Android, nor in Release on any TFM. Uno's Android tooling emits a second declaration for Page subclasses, so two non-partial pages fail with CS0260; and four <see cref>s point at #if DEBUG types (Given_TabBar_HotReload, HotReloadHelper) or at types not visible from the project, which is CS1574 → error under TreatWarningsAsErrors in Release. No CI stage builds this head on Android or in Release, so both went unnoticed.

What is the new behavior?

  • Both serialization projects use Microsoft.NET.Sdk; the msbuild-sdks entry is gone with its last consumer. The packed output is unchanged in shape — lib/net9.0 dll + pdb + xml, same dependency group.
  • Both WebAssembly jobs install wasm-tools themselves, matching what stage-build-wasm.yml already does, and no longer depend on cache state.
  • The two pages are partial; the four crefs are <c> text.

PR Checklist

  • Tested code with current supported SDKs
  • Docs have been added/updated which fit documentation template — n/a, no product behavior change
  • Unit Tests and/or UI Tests for the changes have been added — n/a, build configuration only
  • Wasm UI Tests are not showing any unexpected differences
  • Contains NO breaking changes
  • Updated the Release Notes
  • Associated with an issue (GitHub or internal)

Other information

Verified locally: both serialization projects build and pack (.NET 10 SDK; the swap is SDK-neutral); Navigation.WinUI.Tests fails with CS0260 on net9.0-android without the partial fix and builds clean in Release for both net9.0-android and net9.0-desktop with all six fixes; both YAML files parse. The two workload fixes were verified on #3139's CI (the UI-test lane went red → green with exactly this step; the static-app build now succeeds and only its deploy step fails, on an Azure staging-environment quota that needs clearing in the portal — see below).

Note on Build and Deploy Job: with the build fixed, the deploy step surfaces This Static Web App already has the maximum number of staging environments. That is an Azure-side quota, not something the repo can fix; the check stays red on every PR until stale staging environments are removed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EqfQh5ovrPEvFGcERLiLhH

kazo0 and others added 3 commits August 24, 2026 11:30
Unmaintained - 3.0.44 is its last release - and it does not load under the
.NET 10 SDK: Sdk.props derives a path from $(ToolDepsJsonGeneratorProject),
which that SDK no longer defines (MSB4184, seen on #3139's Windows jobs).

Only Uno.Extensions.Serialization.Http and .Refit used it, and neither needs
anything it provides: three plain .cs files each on the single net9.0 TFM from
tfms-non-ui.props, with none of the per-TFM globbing or Xamarin
multi-targeting the SDK exists for. Both now use Microsoft.NET.Sdk, and the
msbuild-sdks entry goes with its last consumer.

Verified: both projects build and pack, and the packages keep the same shape -
lib/net9.0 dll + pdb + xml, same net9.0 dependency group.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EqfQh5ovrPEvFGcERLiLhH
Uno.Wasm.Bootstrap relinks SkiaSharp's native WebAssembly assets, which needs
the wasm-tools workload in the SDK the job uses. Two jobs never install it:

- UI Tests - WebAssembly (Azure) has been passing on a warm "Set Cache for
  dotnet install" entry that happened to carry the workload. The SDK version is
  part of that cache key, so any bump evicts the entry and the job fails with
  UNOWA0001 "Native WebAssembly assets were detected, but the wasm-tools
  workload could not be located" (#3139, build 229713)
- Build and Deploy Job (GitHub Actions, Azure Static Web Apps) has been failing
  on main on every push with the same error: actions/setup-dotnet installs its
  own SDK inside unoplatform/wasm-build, and the workload belongs to the SDK,
  not to the image

Both now install it themselves, matching stage-build-wasm.yml. Verified on
#3139: the UI-test lane went red -> green with exactly this step, and the
static-app build now succeeds - its deploy step then fails on an Azure
staging-environment quota, which is not something the repository can fix.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EqfQh5ovrPEvFGcERLiLhH
Nothing in CI builds this project on Android or in Release, so two latent
breaks went unnoticed:

- Uno's Android tooling emits a second declaration for Page subclasses;
  HotReloadNewRoutePage and TabThreePage were not partial, so the
  net9.0-android build fails with CS0260
- four <see cref>s point at #if DEBUG types (Given_TabBar_HotReload,
  HotReloadHelper) or at a type not visible from this project, which is
  CS1574 -> error under TreatWarningsAsErrors in Release on every TFM

Verified: net9.0-android Release fails with CS0260 x2 before, and builds with
0 errors after for both net9.0-android and net9.0-desktop.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EqfQh5ovrPEvFGcERLiLhH
@kazo0
kazo0 enabled auto-merge August 24, 2026 16:41
…ller eat the job

update-vs-components.yml drives vs_installer.exe to add Component.Xamarin
and has no timeout. Twice today the installer hung silently on one Windows
sample job while the sibling job ran the identical step in under five
minutes, and each hang cost the full 90-minute job budget (#3139 build 229724,
#3151 build 229783). The step now times out at 15 minutes and retries twice;
vs_installer modify is idempotent, so a retry is safe.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EqfQh5ovrPEvFGcERLiLhH
update-vs-components.yml ran vs_installer.exe to add Component.Xamarin on
every Windows job. It was added when the windows-2022 image removed the
Xamarin tooling (actions/runner-images#6082), for Xamarin.Android/iOS heads
that no longer exist here: the repo dropped UWP and Xamarin, and the
net9.0-android / net9.0-ios targets build from the .NET workloads uno-check
installs, not from Visual Studio components.

It has also become a liability: three times in one day the installer hung
with no output at all - once for the sibling job's 4m50s, once for 84 minutes
until the job timeout, and once for the 15-minute bound the previous commit
put on it (which showed that a step timeout does not trigger
retryCountOnTaskFailure). Removing a step that installs nothing the build
uses is the fix; the Packages job on this PR is the proof, since it builds
every TFM with Visual Studio's MSBuild.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EqfQh5ovrPEvFGcERLiLhH
@kazo0
kazo0 merged commit 0960026 into main Aug 24, 2026
17 of 18 checks passed
@kazo0
kazo0 deleted the dev/sb/build-hygiene branch August 24, 2026 18:09
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