Locate the dotnet executable

jgedri@gmail.com 21 Reputation points
2021-07-08T14:41:30.85+00:00

I'm getting the dreaded "dotnet is not recognized" error, and I'm fairly sure the SDK is installed. Basically, how do I locate the executable file in Windows 10? Thanks in advance for your help.

'dotnet' is not recognized as an internal or external command, operable program or batch file.
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,905 questions
{count} votes

Accepted answer
  1. Bruce Barker 801 Reputation points
    2021-07-08T22:38:39.653+00:00

    if you used the default locations

    the windows 64 bit sdk is in

    c:\"Program Files"\dotnet

    the windows 32 bit sdk is in :

    c:\"Program Files (x86)"\dotnet

    the mac sdk

    /usr/local/share/dotnet 
    

    install:

    download

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Karen Payne MVP 35,421 Reputation points
    2021-07-08T16:53:17.483+00:00

    You need to add the path to environment variables if not running from the developer console

    113064-figure1.png

    From PowerShell (same from cmd but PowerShell is colored text)

    113055-ps.png

    0 comments No comments

  2. jgedri@gmail.com 21 Reputation points
    2021-07-08T17:20:12.4+00:00

    That's the problem: I need to know where dotnet.exe is.


  3. jgedri@gmail.com 21 Reputation points
    2021-07-08T20:58:52.597+00:00

    Which, I guess, means it isn't installed... so what do I download to make sure it is?

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.