Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Code: Failed to launch external program dotnet

Visual Studio Code 1.0.0

Mac OS X 10.11.4

DNX is installed and I can run .NET Core application from terminal. Getting the following error when try to run .NET Core project.

Output window:

Failed to launch external program dotnet .

spawn dotnet ENOENT

Any suggestions?

like image 305
Alexey Avatar asked Apr 25 '16 04:04

Alexey


People also ask

Why is my program not running in VS Code?

If your terminal is set to run as administrator only, and you are not launching VS Code as administrator, the terminal will not be able to open. You can either change the default terminal or edit the properties of the terminal exe to not run as administrator.


1 Answers

I experienced this problem today - it seems to be caused by my running zsh as my shell and launching VS code from the terminal. When I launch from bash or using spotlight everything works.

Apparently VS code has some hacky dependencies on bash - there is a discussion about this issue here:

https://github.com/Microsoft/vscode/issues/8434

like image 81
Console Avatar answered Nov 18 '22 11:11

Console