dotnet is not recognized as an internal command code example

Example: dotnet is not recognized as an internal command

26

dotnet.exe is located in

C:\Program Files\dotnet>
If you are using command prompt and getting message that 'dotnet' is not recognized as an internal or external command, operable program or batch file" then first check the above path. If you found the above path then just copy it and set it as an environment variable of your PC.

Steps:

Open control panel>System and Security>System

Click on Advanced system settings

In advanced section, click in Environment Variables

In System variables, select path and edit

After semicolon, write "C:\Program Files\dotnet"

Click on Ok button till end.

now to check whether its working on not. Just open command propmpt and type

dotnet --version
This will show the dotnet version installed in your PC.

Tags:

Misc Example