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
Then the next step is to run my .NET 9 app, and it fails with a .NET 8 SDK error:
Run sudo -E dotnet run -c Release --allCategories=Singleton
Error: /usr/lib/dotnet/sdk/8.0.111/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(166,5): error NETSDK1045: The current .NET SDK does not support targeting .NET 9.0. Either target .NET 8.0 or lower, or use a version of the .NET SDK that supports .NET 9.0. Download the .NET SDK from https://aka.ms/dotnet/download [/home/runner/work/Inject.NET/Inject.NET/Benchmarks/Benchmarks.csproj]
Description
Here's my build. It's on a matrix to build on ubuntu, windows and mac.
As you can see, windows and mac pass. But ubuntu complains that it only has .NET 8 and not .NET 9.
However you can see in the step above I'm installing the .NET 9 SDK by doing:
That runs and says:
Then the next step is to run my .NET 9 app, and it fails with a .NET 8 SDK error:
Platforms affected
Runner images affected
Image version and build link
https://github.com/thomhurst/Inject.NET/actions/runs/12807345586/job/35707734799
Is it regression?
Yes
Expected behavior
https://github.com/thomhurst/Inject.NET/actions/runs/12738696095
Actual behavior
.NET 9 SDK is installed but isn't used when trying to run a .NET 9 app
Repro steps
Install .NET 9 SDK
Run .NET 9 app
The text was updated successfully, but these errors were encountered: