Skip to content

Fix CI uno-check workload installs with .NET 11 on runners - #900

Closed
Sergio0694 wants to merge 1 commit into
mainfrom
user/sergiopedri/fix-ci-workload-net11
Closed

Sergio0694 wants to merge 1 commit into
mainfrom
user/sergiopedri/fix-ci-workload-net11

Conversation

@Sergio0694

Copy link
Copy Markdown
Member

Fixes

Fixes the broken mobile/wasm CI builds seen in #891 and #898 (draft, validating via CI), without moving the repo to .NET 11.

PR Type

  • Build or CI related changes

What is the current behavior?

The runner images now ship .NET SDK 11.0.100 next to 10.0.x. uno-check picks the highest installed SDK (DotNetCheckup unconditionally sets DOTNET_SDK_VERSION=11.0.100, overriding anything set in the environment, since the manifest's required SDK 10.0.101 never matches exactly) and then runs dotnet workload install --from-rollback-file under a temp global.json pinned to that SDK. Workloads end up in the 11.0.100 feature band, while the check (SDK 10.0.404) and the real build (global.json -> 10.0.404) look at the 10.0.100 band, so the check reports android/maui/ios/maccatalyst/wasm-tools ... is not installed and the job fails (or, with newer uno-check, the build fails with NETSDK1147).

What is the new behavior?

Before uno-check runs (in build and package), SDKs newer than the major pinned in global.json are removed from the runner, so uno-check selects 10.0.404 again and installs/validates workloads in the 10.0.100 band, exactly as before the image gained .NET 11. uno.check stays on 1.34.1.

PR Checklist

  • Created a feature/dev branch
  • Based off latest main branch of toolkit
  • Tested code with current supported SDKs (validating with this PR's CI)
  • Contains NO breaking changes

Other information

Draft: waiting for CI to confirm the matrix (android/ios/macos/wasm + package) goes green.

uno-check installs workloads with the newest SDK it finds, while the build
uses the SDK pinned in global.json. Since the runner images ship .NET 11,
workloads were being installed into the wrong feature band.

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

Copy link
Copy Markdown
Member Author

Closing as a duplicate of #893, which already implements the same fix and has a fully green CI run.

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