Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

" 'devenv' is not recognized as an internal or external command ..."

Is there a way to just open a VS project from the command prompt? For example, the way with Atom, you can navigate to the folder you'd like to open and just run "atom ." Does that kind of utility exist for VS?

edit: Would the equivalent to this be "C:\> devenv /run SomeSolution.sln" ?

if so, great! But there still seems to be a problem because I think the "devenv" command should at least be recognized, but I currently get

'devenv' is not recognized as an internal or external command, operable program or batch file.

I saw that a S/O contributer recommended adding

C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe

to the PATH environment variables values like this, per MSDN, which I did, but I get the same message.

Can anyone explain what might be going on and how to fix it? Thanks

like image 534
spb Avatar asked Jun 01 '16 21:06

spb


People also ask

What is Devenv command?

Roughly, Divine Command Theory is the view that morality is somehow dependent upon God, and that moral obligation consists in obedience to God's commands.

How do I set up Devenv exe?

Press windows + r to open run window and then write "regedit" to open your PC registry. Then go to HKEY_LOCAL_MACHINE -> SOFTWARE -> Microsoft -> Windows -> Currentversion -> App Paths -> devenv.exe. Click on devenv.exe and change the value of default .

Where is Devenv installed?

Find the Devenv project in solution: Properties -> Debug: Start Action - set as Start External program. Also select your devenv.exe, eg.: C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe.


1 Answers

VS 2019 Community

 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\devenv.exe

Any Visual Studio Version

To find your specific devenv.exe path regardless of VS copy/version you can use cmd and then run:

cd \

dir /s divenv.exe

Note: The command dir /s may take a few minutes to find it.

like image 65
Shadi Namrouti Avatar answered Sep 21 '22 18:09

Shadi Namrouti