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.
To perform these procedures, you must have the Check out permission set to Allow. For more information, see.
To add a solution or project to source control
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.
In Solution Explorer, right-click the solution, and choose Add Solution to Source Control.
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.
Once you commit the addition by performing a check-in, the solution is added to the source control server. For more information, see.
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, and .