Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dotnet not recogonized - possible PATH issue? #7428

Closed
fmorriso opened this issue Dec 26, 2016 · 6 comments
Closed

dotnet not recogonized - possible PATH issue? #7428

fmorriso opened this issue Dec 26, 2016 · 6 comments

Comments

@fmorriso
Copy link

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

@dhruvb14
Copy link

dhruvb14 commented Jan 4, 2017

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

@fmorriso
Copy link
Author

fmorriso commented Jan 4, 2017

@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.

@TheRealPiotrP
Copy link
Contributor

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

@IOleg-crypto
Copy link

Thx,bro!!!

@hungdeniubeo
Copy link

u save me, thanks bro.

@SeanEngineering
Copy link

SeanEngineering commented Sep 10, 2023

For those of you who are looking to install ML.NET with similar path issues:

If you are struggling to find the path and running mac, you can reinstall dotnet running the following commands.

Arm based mac

 dotnet tool uninstall -g mlnet-osx-arm64 

Then

 dotnet tool install -g mlnet-osx-arm64 

Intel based mac

 dotnet tool uninstall -g mlnet-osx-x64 

Then

 dotnet tool install -g mlnet-osx-x64 

Above snippets are for Arm based macs
The path should re-render in terminal:
Screenshot 2023-09-11 at 6 09 27 am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants