Omnisharp-vscode: The .NET CLI tools cannot be located

Created on 27 Jul 2016  路  7Comments  路  Source: OmniSharp/omnisharp-vscode

_From @Tobyee on July 27, 2016 5:56_

  • VSCode Version: 1.3.1
  • OS Version: Win7-x64
  • dotnet Version: 1.0.0-beta-001598

Steps to Reproduce:

  1. cmd: mkdir demo & cd demo
  2. cmd: dotnet new
  3. cmd: dotnet restore
  4. cmd: code .

Error:

image

I'am sure that .NET Core SDK for Windows was installed and dotnet command can be execute in cmd.

See alse:

https://github.com/dotnet/cli/issues/3858

_Copied from original issue: Microsoft/vscode#9831_

Debugger Debugger-Install

Most helpful comment

@gregg-miskelly
Thanks for you tips. I found the reason.
It's because I have a old version cli tools installed that influence on the new one.

The old version install is:
old
The new version install is:
new

I uninstall the old one then it fixed.

All 7 comments

@Tobyee do you have the latest version of the C# extension (check in the extensions panel)? Assuming so, what do you get from:

  1. Start->Run, cmd.exe
  2. where dotnet.exe
  3. dotnet --info

@gregg-miskelly
Thanks for you tips. I found the reason.
It's because I have a old version cli tools installed that influence on the new one.

The old version install is:
old
The new version install is:
new

I uninstall the old one then it fixed.

@Tobyee glad you solved your issue. I will close this issue then.

Should this not warrant a warning added to the error message, that antique SDK versions can be the cause?

@Luckz if you are running into a problem related to this and would like some help, or have a concrete suggestion, please open a new issue.

What do Linux users do?

@EliasCK if you are running into a problem related to this and would like some help, or have a concrete suggestion, please open a new issue so we can help understand what is going on on your machine.

Was this page helpful?
0 / 5 - 0 ratings