How to: Add a Project or Solution to Version Control

You can add projects and solutions to version control through Solution Explorer. The add action adds new files and folders from a local file system location to a Team Foundation version control server.

Required Permissions

To perform these procedures, you must have the Check out permission set to Allow. For more information, see Team Foundation Server Permissions.

To add a solution or project to version control

  1. On the Tools menu, click Options. In the Options dialog box, select Source Control. Select Visual Studio Team Foundation Server from the Current source control plug-in list.

  2. In Solution Explorer, right-click the solution, and click Add Solution to Source Control.

  3. In the Add Solution to Source Control dialog box (if you already have a workspace open, you do not see this dialog box — the solution is automatically added and you are not asked to provide a folder), go to where you want to add the project or solution under Team Project Location, and either accept default values, or click Make New Folder and enter the desired folder name or change the name of the solution folder in the Type a name for the solution folder text box.

    Note

    You can optionally click Advanced, and then select an alternate mapping for the solution. For more information, see How to: Choose an Alternate Mapping for a Solution.

  4. Click OK.

    Once you commit the addition by performing a check-in, the solution is added to the version control server. For more information, see Submitting Changes to the Version Control Server.

    Note

    Solutions and projects can also be added from the command line or from the Visual Studio menu; however, adding projects and solutions in these ways does not bind them. This binding is responsible for providing version control functionality including various version control icons that indicate status in Solution Explorer. For more information, see How to: Bind and Unbind Projects and Solutions, Add Command and How to: Add Non-Project or Non-Solution Files and Folders to Version Control.

See Also

Tasks

How to: Add Non-Project or Non-Solution Files and Folders to Version Control

How to: Check In Pending Changes

Concepts

Submitting Changes to the Version Control Server

Reference

Add Command

Other Resources

Adding Projects and Solutions to Version Control from Solution Explorer