C
C#4w 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:
"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?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server