I'm using Visual Studio Code. On my machine, I have two separate installations of the Net Core SDK / dotnet CLI tools
- an outdated version (netcore 1.1) in the standard path
%ProgramFiles%\dotnet
and - a recent version (netcore 2.0) installed to a different, custom path
%AppData%\...
I need Visual Studio Core - and thereby, Omnisharp - to use the recent, i.e. custom installation. Unfortunately, due to my machine setup, the default "dotnet" command is registered with the out of date installation, and I cannot change this. Omnisharp is using the SDK from the same location as well.
- Is there any way for a non-admin user to specify in Visual Studio Code / Omnisharp to use the dotnet tools from my custom location?
- Any particular configuration setting or similiar?
For context, as to why my machine has such a weird setup and why I cannot do much about it, see Cmd precedence: How to use correct dotnet.exe when installed in 2 locations?
Thanks
global.json
as explained here