Fails with GitHub Actions ubuntu-24.04 and .NET 9 SDK
Closed this issue ยท 5 comments
The CLI seems to be having trouble with ubuntu-24.04 in combination with the .NET 9 SDK on GitHub Actions:
The ubuntu-24.04 is being rolled out as ubuntu-latest over the next month. It looks like MSBuild is not installed by default in 24.04. I would expect MSBuildLocator
to pick up on the MSBuild version included with the .NET SDK, but I suspect that this might not be working because I'm using .NET 9 SDK, and this project is still on .NET 8.
I'm hoping #109 might fix this, but I'm not totally sure.
Hi @Methuselah96 thanks for reaching out.
We are working on getting dotnet-affected to pass tests on .NET 9 but are having issues related to MSBuild as well.
Can you attach the dotnet --info
output as well for completeness?
If you want to give it a go to the dotnet 9 compatible version, you can get the packages from this build and use those instead of the nuget.org version.
Thank you,
Leo.
Here is the dotnet --info
output:
.NET SDK:
Version: 9.0.101
Commit: eedb237549
Workload version: 9.0.100-manifests.3068a692
MSBuild version: 17.12.12+1cce77968
Runtime Environment:
OS Name: ubuntu
OS Version: 24.04
OS Platform: Linux
RID: linux-x64
Base Path: /usr/share/dotnet/sdk/9.0.101/
.NET workloads installed:
There are no installed workloads to display.
Configured to use loose manifests when installing new manifests.
Host:
Version: 9.0.0
Architecture: x64
Commit: 9d5a6a9aa4
.NET SDKs installed:
9.0.101 [/usr/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 9.0.0 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.11 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.0 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Other architectures found:
None
Environment variables:
DOTNET_ROOT [/usr/share/dotnet]
global.json file:
Not found
Hi @Methuselah96 , dotnet affected v6.0.0-preview-1 has just been released would you kindly give it a go and report back?
Thank you.
Leo
That seems to have fixed it. Thanks!
Got it, I'll close this one. Feel free to reopen as needed.
Thanks!
Leo.