Search code examples
visual-studiovisual-studio-2010tfsversion-control

How to add an existing solution to a Team Foundation Server?


I have a solution, which contains 7 projects. I wanted to try out TFS (just to see how it works etc.), so I would like to add this existing solution to my TFS' DefaultCollection.

Is this possible without re-creating all the projects and adding their files?


Solution

    1. Create a Team Project to hold them
    2. Create a workspace mapping between the team project and the current location of your code on disk
    3. Go to Team Explorer, connect to your new project, double-click "Source Control"
    4. Right-click the node for the new project and choose "Add to Source Control"