Simon
Simon

Reputation: 2469

Error running C#/F# program on Mac OS

Both, the C# and F# hello world console application examples, fail with the following message:

Debugger operation failed
launch: program '' does not exist.

enter image description here

I can't get it to work properly. Microsoft site says that no additional stuff has to be installed for it to work properly source

I already reinstalled visual studio which did not help. If I choose run -> run with custom configuration and turn off 'run in external console' it works fine. However I cannot find a setting to make this the default and I would love if it would just work and my installation was fine.

Hope someone has a clue. Thanks in advance

Upvotes: 1

Views: 156

Answers (1)

wura alese
wura alese

Reputation: 26

To fix it, I added a symlink to the .NET binary in my $PATH. Apparently, the problem is that .NET isn't added to your path by default. Add the link through your terminal with the following:

ln -s /usr/local/share/dotnet/dotnet /usr/local/bin/

I found this solution here https://developercommunity.visualstudio.com/content/problem/420236/debugger-operation-failed-launch-program-does-not.html

Upvotes: 1

Related Questions