Add Existing Project Command
Applies to: Visual Studio Visual Studio for Mac
Note
This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here
Adds an existing project to the current solution.
Syntax
File.AddExistingProject filename
Arguments
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.
Remarks
Auto completion tries to locate the correct path and file name as you type.
Example
This example adds the Visual Basic project, TestProject1, to the current solution.
>File.AddExistingProject "c:\visual studio projects\TestProject1.vbproj"