Skip to content

Fix native Windows builds failing to find .NET SDK 10.0.108 - #4089

Merged
mattleibow merged 1 commit into
mainfrom
mattleibow/laughing-doodle
May 28, 2026
Merged

mattleibow merged 1 commit into
mainfrom
mattleibow/laughing-doodle

Conversation

@mattleibow

Copy link
Copy Markdown
Contributor

Problem

After #4055 bumped the SDK to 10.0.108, native Windows builds fail at the "Restore the .NET tools" step because:

  • The UseDotNet@2 task was only in the managed builds section (not(startsWith(name, 'native_')))
  • Windows agents only have 10.0.101 pre-installed
  • global.json requires >= 10.0.108 with rollForward: latestFeature
  • macOS agents weren't affected because they have 10.0.300, which satisfies the roll-forward policy

Fix

Move the .NET SDK installation (UseDotNet@2, Linux dotnet patch, and dotnet --info) to a common section that runs for both native and managed builds. Workload installation stays in the managed-only section since native builds don't need workloads.

The UseDotNet@2 task was previously only in the managed builds
section (not(startsWith(name, 'native_'))). After PR #4055 bumped
the SDK to 10.0.108, native Windows builds fail because the agents
only have 10.0.101 pre-installed and global.json requires >= 10.0.108
with rollForward: latestFeature.

macOS agents happen to have 10.0.300 which satisfies latestFeature,
but Windows agents only have 10.0.101 in the 1xx band.

Move the SDK install, Linux patch, and dotnet --info steps to a new
top-level block that runs for both native and managed builds. Keep
workload installation in the managed-only section since native builds
don't need workloads.

Co-authored-by: Copilot <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

📦 Try the packages from this PR

Warning

Do not run these scripts without first reviewing the code in this PR.

Step 1 — Download the packages

bash / macOS / Linux:

curl -fsSL https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.sh | bash -s -- 4089

PowerShell / Windows:

iex "& { $(irm https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.ps1) } 4089"

Step 2 — Add the local NuGet source

dotnet nuget add source ~/.skiasharp/hives/pr-4089/packages --name skiasharp-pr-4089
More options
Option Description
--successful-only / -SuccessfulOnly Only use successful builds
--force / -Force Overwrite previously downloaded packages
--list / -List List available artifacts without downloading
--build-id ID / -BuildId ID Download from a specific build

Or download manually from Azure Pipelines — look for the nuget artifact on the build for this PR.

Remove the source when you're done:

dotnet nuget remove source skiasharp-pr-4089

@mattleibow
mattleibow merged commit 7d9820b into main May 28, 2026
3 of 4 checks passed
@mattleibow
mattleibow deleted the mattleibow/laughing-doodle branch May 28, 2026 03:56
@github-actions

Copy link
Copy Markdown
Contributor

📖 Documentation Preview

The documentation for this PR has been deployed and is available at:

🔗 View Staging Site
🔗 View Staging Docs
🔗 View Staging Gallery (Blazor)
🔗 View Staging Gallery (Uno Platform)
🔗 View Staging SkiaFiddle

This preview will be updated automatically when you push new commits to this PR.


This comment is automatically updated by the documentation staging workflow.

@mattleibow mattleibow added this to the 4.148.0-rc.1 milestone Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant