How to: Add a Project to Source Control
Visual Studio source control allows you to add a project and the containing solution to source control at the same time. If a solution is already under source control, you can add a new project to it. Checking in a solution automatically places any new projects it contains under source control.
To add a project and solution to source control
In Visual Studio, create a new project. If you have questions about how to do this, search the Visual Studio Help.
Select the solution containing your new project.
On the File menu, click Source Control.
Click Add Solution to Source Control and select the database project to which to add the solution using procedures for your source control plug-in.
To add selected projects to source control
In Visual Studio, open an existing solution in Solution Explorer.
Create new projects as required in the solution. If you have questions about how to do this, there are several procedures in the Visual Studio Help.
Check out the solution file, because source control needs to add the new project details to that file. Use the checkout procedure specific to your source control plug-in.
On the File menu, click Source Control, and then click Add Selected Projects to Source Control.
You are prompted to decide whether you want to add the projects as subfolders of the solution or as separate folders. In most situations, you should add the projects to the solution folder in the database.
Check the solution back in to source control, using the check-in procedure specific to your source control plug-in.