Wrong workload versions installed when pinned to .NET 8 via global.json
on latest GitHub Action windows runners
#45204
Labels
global.json
on latest GitHub Action windows runners
#45204
Describe the bug
Since GitHub released new Windows runner images that include the .NET 9 SDK, our build workflows which target .NET 8 projects have stopped working. After dissecting the issue, it turns out that the workloads installed in the build workflow are older than what the projects require to build. More specifically, the workloads installed are from the .NET 7 workload set while we're expecting the ones from the .NET 8 workload set.
This is the output returned by the
dotnet workload install android
command, from an isolated project linked below to investigate this issue with:As can be seen above, the workload version installed for
android
is 33.0.95, which is from the .NET 7 workload set. Runningdotnet --info
afterwards returns the following:To Reproduce
I was not able to reproduce this on my local machine, but I have at least prepared an isolated repository containing a random Android project and a GHA workflow reproducing the bug.
Restore .NET Workloads
,Get .NET Info
, and theCompile
steps.Exceptions (if any)
Further technical details
Output from the GHA workflow run linked above:
The text was updated successfully, but these errors were encountered: