Open n00j opened 6 months ago
I also tried this with the latest pre-release: 1.5.18
Does vsdbg
have some hardcoded search paths? and ignores $PATH variable?
Tagging @WardenGnaw for thoughts on this.
Coming back to this, it seems very similar to #792. If you think so as well @WardenGnaw and there's nothing specific we'd need to do on the debugger side, please feel free to resolve against that.
In that other one, it says it's "loading the sdk from the path". In this case, sdk on the path is pointing to the same location. It looks like it's completely ignoring the $PATH and the settings in vscode.
Describe the Issue
Using Remote-SSH with a custom .net install location
/home/agupta5/.dotnet
Solution explorer doesn't loadUsing a devcontainer with a custom .net install location
/home/agupta5/.dotnet
, when you try to run with the debugger attached, it cannot find the .NET SDKSteps To Reproduce
Remote SSH
/home/agupta5/.dotnet
The SDK was installed via this guide: https://learn.microsoft.com/en-us/dotnet/core/install/linux-scripted-manualOne or more errors occured. (No installed .NET SDK was found on the computer. If it is installed, make sure it can be found through the PATH environment variable.
Dev Container
Open this project in a dev container in WSL: https://github.com/n00j/dotnetdevkitbug
In the devcontainer the solution loads correctly, but right-clicking on the project -> Debug -> start new instance returns in the missing sdk error:
Right click Project -> Debug -> Start Without Debugging
Expected Behavior
I expect C# Dev Toolkit to work correctly with a custom SDK install in a devcontainer or using remote-ssh without a global SDK install being available.
Environment Information