Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Starting Visual Studio from a command prompt

I have three different versions of Visual Studio installed on my machine, Visual Studio 2003, Visual Studio 2008, and VS2005.

How do I start a particular version of Visual Studio using a command prompt.

devenv.exe opens the latest version of Visual Studio. What should I do if I want to open Visual Studio 2003 using a command prompt?

like image 594
SNA Avatar asked Jun 10 '09 03:06

SNA


People also ask

How do I start Visual Studio from command-line?

On the Start screen, press Ctrl+Tab to open the Apps list, and then press V. This brings up a list that includes all installed Visual Studio command prompts.

How do I launch Microsoft Visual Studio?

If you have Visual Studio open, go to Tools > Get Tools and Features... which opens the Visual Studio Installer. Or, open the Visual Studio Installer from the Start menu.

What is the command to directly open Visual Studio code from the command prompt?

To get an overview of the VS Code command-line interface, open a terminal or command prompt and type code --help .


2 Answers

Haven't tested on preceding versions - but to launch Visual Studio 2019 you can just enter start devenv to launch right away without entering into a path

like image 97
KoalaZub Avatar answered Oct 16 '22 08:10

KoalaZub


You have to use the path to distinguish them. For instance, here is the Visual Studio 2005 command on my laptop:

    "C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv.exe" 

Here's another tip: You can figure out how to run various Windows applications from the command line by finding them in the Windows Start Menu, right-clicking on the icon, select properties, and then on the Shortcut tab, look at the Target textbox. Copy that text out and usually you can use it at a console command line.

like image 33
RBarryYoung Avatar answered Oct 16 '22 10:10

RBarryYoung