You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Run dotnet workload install android
Installing workload manifest microsoft.net.sdk.android version 33.0.95...
Installing workload manifest microsoft.net.sdk.ios version 16.4.7142...
Installing workload manifest microsoft.net.sdk.maccatalyst version 16.4.7142...
Installing workload manifest microsoft.net.sdk.macos version 13.3.7142...
Installing workload manifest microsoft.net.sdk.maui version 7.0.101...
Installing workload manifest microsoft.net.sdk.tvos version 16.4.7142...
Installing pack Microsoft.Android.Sdk.Windows version 33.0.95...
Writing workload pack installation record for Microsoft.Android.Sdk.Windows version 33.0.95...
Installing pack Microsoft.Android.Sdk.Windows version 32.0.509...
Writing workload pack installation record for Microsoft.Android.Sdk.Windows version 32.0.509...
Installing pack Microsoft.Android.Ref.33 version 33.0.95...
Writing workload pack installation record for Microsoft.Android.Ref.33 version 33.0.95...
Installing pack Microsoft.Android.Runtime.33.android-arm version 33.0.95...
Writing workload pack installation record for Microsoft.Android.Runtime.33.android-arm version 33.0.95...
Installing pack Microsoft.Android.Runtime.33.android-arm64 version 33.0.95...
Writing workload pack installation record for Microsoft.Android.Runtime.33.android-arm64 version 33.0.95...
Installing pack Microsoft.Android.Runtime.33.android-x86 version 33.0.95...
Writing workload pack installation record for Microsoft.Android.Runtime.33.android-x86 version 33.0.95...
Installing pack Microsoft.Android.Runtime.33.android-x64 version 33.0.95...
Writing workload pack installation record for Microsoft.Android.Runtime.33.android-x64 version 33.0.95...
Installing pack Microsoft.Android.Templates version 33.0.95...
Writing workload pack installation record for Microsoft.Android.Templates version 33.0.95...
Installing pack Microsoft.NETCore.App.Runtime.Mono.android-arm version 6.0.31...
Writing workload pack installation record for Microsoft.NETCore.App.Runtime.Mono.android-arm version 6.0.31...
Installing pack Microsoft.NETCore.App.Runtime.Mono.android-arm64 version 6.0.31...
Writing workload pack installation record for Microsoft.NETCore.App.Runtime.Mono.android-arm64 version 6.0.31...
Installing pack Microsoft.NETCore.App.Runtime.Mono.android-x64 version 6.0.31...
Writing workload pack installation record for Microsoft.NETCore.App.Runtime.Mono.android-x64 version 6.0.31...
Installing pack Microsoft.NETCore.App.Runtime.Mono.android-x86 version 6.0.31...
Writing workload pack installation record for Microsoft.NETCore.App.Runtime.Mono.android-x86 version 6.0.31...
Installing pack Microsoft.NET.Runtime.MonoAOTCompiler.Task version 6.0.31...
Writing workload pack installation record for Microsoft.NET.Runtime.MonoAOTCompiler.Task version 6.0.31...
Installing pack Microsoft.NET.Runtime.MonoTargets.Sdk version 6.0.31...
Writing workload pack installation record for Microsoft.NET.Runtime.MonoTargets.Sdk version 6.0.31...
Installing pack Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-x86 version 6.0.31...
Writing workload pack installation record for Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-x86 version 6.0.31...
Installing pack Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-x64 version 6.0.31...
Writing workload pack installation record for Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-x64 version 6.0.31...
Installing pack Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm version 6.0.31...
Writing workload pack installation record for Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm version 6.0.31...
Installing pack Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm64 version 6.0.31...
Writing workload pack installation record for Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm64 version 6.0.31...
Installing pack Microsoft.NETCore.App.Runtime.Mono.android-arm version 7.0.20...
Writing workload pack installation record for Microsoft.NETCore.App.Runtime.Mono.android-arm version 7.0.20...
Installing pack Microsoft.NETCore.App.Runtime.Mono.android-arm64 version 7.0.20...
Writing workload pack installation record for Microsoft.NETCore.App.Runtime.Mono.android-arm64 version 7.0.20...
Installing pack Microsoft.NETCore.App.Runtime.Mono.android-x64 version 7.0.20...
Writing workload pack installation record for Microsoft.NETCore.App.Runtime.Mono.android-x64 version 7.0.20...
Installing pack Microsoft.NETCore.App.Runtime.Mono.android-x86 version 7.0.20...
Writing workload pack installation record for Microsoft.NETCore.App.Runtime.Mono.android-x86 version 7.0.20...
Installing pack Microsoft.NET.Runtime.MonoAOTCompiler.Task version 7.0.20...
Writing workload pack installation record for Microsoft.NET.Runtime.MonoAOTCompiler.Task version 7.0.20...
Installing pack Microsoft.NET.Runtime.MonoTargets.Sdk version 7.0.20...
Writing workload pack installation record for Microsoft.NET.Runtime.MonoTargets.Sdk version 7.0.20...
Installing pack Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-x86 version 7.0.20...
Writing workload pack installation record for Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-x86 version 7.0.20...
Installing pack Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-x64 version 7.0.20...
Writing workload pack installation record for Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-x64 version 7.0.20...
Installing pack Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm version 7.0.20...
Writing workload pack installation record for Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm version 7.0.20...
Installing pack Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm64 version 7.0.20...
Writing workload pack installation record for Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm64 version 7.0.20...
Garbage collecting for SDK feature band(s) 6.0.100 6.0.200 6.0.300 6.0.400 7.0.100 7.0.200 7.0.300 7.0.400 8.0.100 8.0.200 8.0.300 8.0.400 9.0.100...
Successfully installed workload(s) android.
As can be seen above, the workload version installed for android is 33.0.95, which is from the .NET 7 workload set. Running dotnet --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.
This is bizarre and not behavior we've seen before. What files do you have in your dotnet\sdk-manifests folder as the output is really confusing (there should be an 8.0.100 folder and I'd only expect this behavior if that folder were missing).
You can maybe try dotnet workload update --version 8.0.404 after your workload install but given the output, I'm not sure that'll work as it's in a very strange state.
What files do you have in your dotnet\sdk-manifests folder as the output is really confusing (there should be an 8.0.100 folder and I'd only expect this behavior if that folder were missing).
You can maybe try dotnet workload update --version 8.0.404 after your workload install but given the output, I'm not sure that'll work as it's in a very strange state.
That does work actually, the correct workload versions are installed after executing that command:
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: