We recommend using Visual Studio 2017

How to: Add a Project or Solution to Source Control

You can add projects and solutions to source control through Solution Explorer. The add action adds new files and folders from a local file system location to a Team Foundation source 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 source 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 choose 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), navigate 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.


    You can optionally click Advanced, and then choose 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 source control server. For more information, see Submitting Changes to the Source Control Server.


    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 source control functionality including various source 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 Source Control.

See Also