OmniSharp.Dnx.DnxPaths The specified default execution path 'default' does not exist

I'm trying to use OmniSharp with VisualStudio Code and ASP.NET 5 (VNEXT), but when I try to use Omnisharp, I have this problem:

[ERROR: OmniSharp.Dnx.DnxPaths] The specified default execution path "default" does not exist. Location search

I can run the ASP.NET web project from the command line and I tried using OmniSharpt with Sublime and Atom, but I have the same problem ...

I read this tutorial step by step and everything works fine except for this problem ... (I am using OSx El Capitan)

More details here: https://github.com/OmniSharp/omnisharp-roslyn/issues/347

Any ideas?

Thanks!!

+6
source share
2 answers

I installed "1.0.0-rc1-final" and I struggled with this a few days ago. For some reason, I don't know yet, the runtime was set to / usr / local / lib / dnx / runtimes, but Omnisharp was looking at ~ ~ .dnx / runtimes, which was completely empty.

I tried reinstalling several aspnet5 cores and both runtimes (coreclr and mono).

In the end, I decided to do it (but I still don't know what the real problem was):

rmdir ~/.dnx/runtimes ln -s /usr/local/lib/dnx/runtimes ~/.dnx/runtimes 

Then VSCode and Atom work fine.

Best

Jonathan

+24
source

Ok, I read this and it solved my problem:

It seems that OmniSharp cannot read the globally set Battery Life. Installing the dnvm package from the installation window runtime in a global location.

 แ… dnvm list -detailed Active Version Runtime Architecture OperatingSystem Alias Location ------ ------- ------- ------------ --------------- ----- -------- 1.0.0-rc1-final coreclr x64 darwin default /usr/local/lib/dnx/runtimes 1.0.0-rc1-final mono linux/osx /usr/local/lib/dnx/runtimes 

Instead of a symbolic link, you can delete them in a global location and reinstall them in a custom location.

 แ… dnvm uninstall 1.0.0-rc1-final -r coreclr แ… dnvm uninstall 1.0.0-rc1-final -r mono 

and then set them to the user's location. the -g flag sets them all over the world.

 แ… dnvm install latest -r coreclr แ… dnvm install latest -r mono 

It will give you

 แ… dnvm list -detailed Active Version Runtime Architecture OperatingSystem Alias Location ------ ------- ------- ------------ --------------- ----- -------- * 1.0.0-rc1-final coreclr x64 darwin default ~/.dnx/runtimes 1.0.0-rc1-final mono linux/osx ~/.dnx/runtimes 

Thanks to @danlofquist from GitHub

and everything will work as intended.

+6
source

All Articles