Aracılığıyla paylaş


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

  1. In Visual Studio, create a new project. If you have questions about how to do this, search the Visual Studio Help.

  2. Select the solution containing your new project.

  3. On the File menu, click Source Control.

  4. 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

  1. In Visual Studio, open an existing solution in Solution Explorer.

  2. 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.

  3. 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.

  4. On the File menu, click Source Control, and then click Add Selected Projects to Source Control.

  5. 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.

  6. Check the solution back in to source control, using the check-in procedure specific to your source control plug-in.

See Also

Other Resources

Performing Source Control Tasks