Search code examples
shellcommandvisual-studio-2022

How to start Visual Studio 2022 from cmd


in Visual Studio 2019 is it possible to Launch in cmd via "start devenv". Now i have installed both version 2019 and 2022, and with the same command it starts 2019 version.

Any body a idea to start vsStudio 2022 via cmd? in an easy way?

Thx for help.


Solution

    1. In the search box of the system type "Visual Studio 2022"
    2. Right click on it and select "Open file location"
    3. Right click (again) on the direct access "Visual Studio 2022" and select "Open file location"
    4. Copy the path of that folder (Something like "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE")
    5. Go to system environment variables and in the "User variables" add to "Path" the path of the step 4.

    Now you can type in cmd "start devenv" and Visual Studio 2022 will start.