问题
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?
回答1:
- Create a Team Project to hold them
- Create a workspace mapping between the team project and the current location of your code on disk
- Go to Team Explorer, connect to your new project, double-click "Source Control"
- Right-click the node for the new project and choose "Add to Source Control"
回答2:
Sure, just right click on the solution in Solution Explorer and select "Add Solution to Source Control".
回答3:
For Team Foundation Service:
- Go to your http://.visualstudio.com
- Create a new Project via the website
- Open your solution in Visual Studio 2017
- Go to "Team Explorer" and double click the newly added project name from TFS (it is normally set in a gray color)
- Go back to "Solution Explorer" and to right mouse click on the solution and select "Add to source control"
- Right mouse click on the solution in "Solution Explorer" and select "Check in" for an initial check in to TFS
;-)
来源:https://stackoverflow.com/questions/7826546/how-to-add-an-existing-solution-to-a-team-foundation-server