© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2w ago•
40 replies
Snip

✅ .NET resolver picking the wrong runtime

advanced
hello!
we have an issue where a .net 8 application is somehow being run with the .net 10 runtime instead. a dependency that we use does not support .net 10, and as such makes the application crash on boot.
the user has both .net 8 and .net 10 SDKs installed (SDKs are 8.0.123 and 10.0.102; runtimes are 8.0.23 and 10.0.2). the application has a .runtimeconfig.json that looks like so:
{
  "runtimeOptions": {
    "tfm": "net8.0",
    "framework": {
      "name": "Microsoft.NETCore.App",
      "version": "8.0.0"
    }
  }
}
{
  "runtimeOptions": {
    "tfm": "net8.0",
    "framework": {
      "name": "Microsoft.NETCore.App",
      "version": "8.0.0"
    }
  }
}

however, despite that, the resolver still picks the .net 10 runtime for some reason.
is there a way to force only .net 8 to be selected? how does the resolver pick a runtime with which the application should be run?
thanks in advance for your time.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ .NET Runtime on ARMv5
C#CC# / help
3y ago
Native Hosting .NET Runtime
C#CC# / help
4y ago
❔ picking the right patterns
C#CC# / help
3y ago
.NET Runtime Docker build tools missing openssl
C#CC# / help
16mo ago