Unable to run dotnet 8 applications with the dotnet 10 sdk
- Dominant language
- C#
- Stars
- 3.2k
- Forks
- 1.3k
- PR merge metrics
- PR metrics pending
Description
### Describe the bug
When building a previous application that uses net8.0 runtime, I receive "[NETSDK1138]: The target framework is out of support". Normally, setting CheckEolTargetFramework=false ignores this error. However, with the dotnet 10 sdk installed, the CheckEolTargetFramework is ignored and the error persists.
### To Reproduce
1. Create a new net8.0 application
2. In the csproj file, add `false`
3. Install the net 10 sdk.
4. Try to run your net8.0 application.
### Exceptions (if any)
[NETSDK1138]: The target framework is out of support"
### Further technical details
OS: Mac Tahoe 26.2
I noticed that `dotnet workload list` only includes dotnet 10. However, if I remove the 10.0.101 sdk, `dotnet workload list` will output workloads for dotnet 8 and dotnet 8.
Installed Workload Id Manifest Version Installation Source
--------------------------------------------------------------------
maui 10.0.1/10.0.100 SDK 10.0.100
### Work Around
1. Uninstall dotnet 10 sdk by following [Remove Runtime Sdk Versions](https://learn.microsoft.com/en-us/dotnet/core/install/remove-runtime-sdk-versions?pivots=os-macos#uninstall-net)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.