Where is the dotnet command executable located on Windows?

entity-framework-core visual-studio windows

Question

I am exploring the new Entity Framework Core (NOT in conjunction with ASP.Net, what I am coding is just a WinForms app) and found some tutorials mentioning a dotnet command line command needed to create "migrations". When I try it, however, it says 'dotnet' is not recognized as an internal or external command, operable program or batch file. I have searched my hard drive for "dotnet.exe", "dotnet.bat" and "dotnet.cmd" but have found nothing. I use Visual Studio 2015 Community Edition. Where do I find this command executable? What am I to add to the %PATH% environment variable for it to work?

1
20
3/3/2017 9:03:28 PM

Popular Answer

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:

  1. Open control panel>System and Security>System

  2. Click on Advanced system settings

  3. In advanced section, click in Environment Variables

  4. In System variables, select path and edit

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

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

13
8/5/2018 1:36:55 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow