Sdk: dotnet not recogonized - possible PATH issue?

Created on 26 Dec 2016  路  3Comments  路  Source: dotnet/sdk

Steps to reproduce

  1. Install
    DotNetCore.1.0.1-VS2015Tools.Preview2.0.3.exe

  2. Install
    dotnet-win-x64.1.1.0.exe

  3. Install
    dotnet-dev-win-x64.1.0.0-preview2-1-003177.exe

  4. Open command prompt

  5. Type
    dotnet --version

Expected behavior

Output of DotNet core version information

Actual behavior

'dotnet ' is not recognized as an internal or external command

I cannot find anywhere in the documentation or readme information about what needs to be in the PATH and maybe what should NOT be in the PATH and in WHAT ORDER.
path.txt

Environment data

dotnet --info output:
(unable to produce)

PATH

See attached path.txt file which was produced via $env:PATH -split ';' | Out-File path.txt

Most helpful comment

Same issue here,

  1. Start the System Control Panel applet (Start - Settings - Control Panel - System).
  2. Select the Advanced tab.
  3. Click the Environment Variables button.
  4. Under System Variables, select Path, then click Edit.
  5. Add C:\Program Files\dotnet to path.
  6. Save and close all CMD windows
  7. Should work now

All 3 comments

Same issue here,

  1. Start the System Control Panel applet (Start - Settings - Control Panel - System).
  2. Select the Advanced tab.
  3. Click the Environment Variables button.
  4. Under System Variables, select Path, then click Edit.
  5. Add C:\Program Files\dotnet to path.
  6. Save and close all CMD windows
  7. Should work now

@dhruvb14 : Thanks. Adding C:\Program Files\dotnet to the path works.
FYI: I used a free tool named Rapid Environment Editor from rapidee.com to make the change. That tool needs to be launched "As Administrator" in order to change the System Path.

dotnet is put on the PATH by the host which is built from the core-setup repo. Moving the issue there.

Was this page helpful?
0 / 5 - 0 ratings