Opening a folder in Visual Studio from the command line

I see demos where in a visual studio code a folder with an angular application opens, using

code .

from the terminal.

Can I do the same with Visual Studio. Perhaps I should write Powershell scripts to accomplish the same thing?

+4
source share
1 answer

I think this is currently not possible.

The first requirement is to run Visual Studio from the command line.

The equivalent of the "code" command is "devenv". If you type this on the command line, Visual Studio opens. Just make sure that the command is included in your path if you use the normal command line. It is already included in the path variable if you are using the Visual Studio command line.

. . < VS 2017 . Visual Studio . , Visual Studio 2017 Visual Studio .

, devenv.

: https://docs.microsoft.com/en-us/visualstudio/ide/reference/devenv-command-line-switches

, Visual Studio 2017, - File > Open > Folder, .

, Visual Studio .

, " ".

+3

Source: https://habr.com/ru/post/1694404/


All Articles