© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•16mo ago
SeanOMik

VSCode set dotnet sdk directory

I have a specific version of dotnet installed on my machine for a project, I can't replace the system wide one installed through my package manager since other things rely on it. I tried to set these in
settings.json
settings.json
:
"dotnet.dotnetPath": "/home/seanomik/.local/share/mise/installs/dotnet/9.0.100-rc.2.24474.11",
"dotnetAcquisitionExtension.sharedExistingDotnetPath": "/home/seanomik/.local/share/mise/installs/dotnet/9.0.100-rc.2.24474.11"
"dotnet.dotnetPath": "/home/seanomik/.local/share/mise/installs/dotnet/9.0.100-rc.2.24474.11",
"dotnetAcquisitionExtension.sharedExistingDotnetPath": "/home/seanomik/.local/share/mise/installs/dotnet/9.0.100-rc.2.24474.11"

However, vscode isn't using it. When I start vscode I get a warning saying nuget restore failed, I view logs and see this:
/usr/share/dotnet/sdk/8.0.403/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(166,5): error NETSDK1045: The current .NET SDK does not support targeting .NET 9.0.
/usr/share/dotnet/sdk/8.0.403/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(166,5): error NETSDK1045: The current .NET SDK does not support targeting .NET 9.0.

How could I set the path and actually get vscode to use it?
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

❔ Portable DotNet SDK
C#CC# / help
3y ago
✅ Dotnet SDK install problems
C#CC# / help
2y ago
✅ dotnet add reference in vscode
C#CC# / help
3y ago
✅ cant get dotnet sdk recognized
C#CC# / help
17mo ago