The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Add Existing Project Command

Adds an existing project to the current solution.

File.AddExistingProject filename


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

Paths containing spaces in the filename argument must use quotation marks at their beginning and end.


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"

See Also

Visual Studio Commands with Arguments | Command Window | Find/Command Box | Pre-defined Visual Studio Command Aliases

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft