Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual Studio Code Failed to find dotnet from path with "which dotnet" #7701

Closed
avatar-lavventura opened this issue Oct 27, 2024 · 1 comment

Comments

@avatar-lavventura
Copy link

avatar-lavventura commented Oct 27, 2024

I have installed dotnet sdk inside MacBook and in my terminal dotnet --info returns valid information.

But inside Visual Studio Code, I am getting following error message, when I try to run the project:

Failed to find dotnet from path with "which dotnet".
Cannot find .NET SDK installation from PATH environment. C# DevKit extension would not work without a proper installation of the .NET SDK accessible through PATH environment. Rebooting might be necessary in some cases. Check the PATH environment logged in the C# DevKit logging window. In some cases, it could be affected how VS code was started.
PATH=/usr/bin:/bin:/usr/sbin:/sbin

How can I fix this error? Note that vscode tries to read PATH from /bin/sh rather than /bin/bash.

@dibarbet
Copy link
Member

Looks like the issue is on the devkit side, moving to microsoft/vscode-dotnettools#1565

@dibarbet dibarbet closed this as not planned Won't fix, can't repro, duplicate, stale Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants