1
votes

For a new project I have created a local folder tree with empty Visual Studio solutions and projects. At this moment the solutions are not attached to source control.

Now I want to add entire folder structure with all the solutions to the TFS.

Do I need to bind all the solutions to source control before I check-in them? Or I can just check-in all the folders and files as they are now, and then later I can use Visual Studio to bind the solutions to the TFS source control?

I am afraid that if I try to bind solutions, I'll be asked for a path on the TFS, but as I haven't my folder structure checked in yet, I won't have the folders on the TFS where to attach my solutions.

2
I use VS 2010 and TFS 2010 and often times when I go to open a solution that is checked into source control but is not bound, it asks me if I want to bind it.BryanJ

2 Answers

1
votes

Yes, you need to bind them before you can check them in. Binding basically means TFS server details are embedded into the solution file and project file of the project.

So, essentially you CANNOT perform any source control related operation without binding.

You should perform the following steps:

1. Bind the solution
2. Create your folder structure
3. Checkin

Do you see any problem with that ?

2
votes

You can check a bunch of files into TFS through the source control explorer and then later open the solution and bind the files to source control. You go through File | Source Control | Change Source Control and click all the checkboxes. TFS will create, add, update files as needed and then you can commit all of the pending checkins.