Add Existing Project Command

 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

For the latest documentation on Visual Studio 2017, see Add Existing Project Command on docs.microsoft.com. Adds an existing project to the current solution.

File.AddExistingProject filename  

filename
Optional. The full path and project name, with extension, of the project to add to the solution.

If the filename argument includes spaces, it must be enclosed in quotation marks.

If no filename is specified, the command will open the file dialog so that user can pick a project.

Auto completion tries to locate the correct path and file name as you type.

This example adds the Visual Basic project, TestProject1, to the current solution.

>File.AddExistingProject "c:\visual studio projects\TestProject1.vbproj"  

Visual Studio Commands
Command Window
Find/Command Box
Visual Studio Command Aliases

Show: