OK - this is a question that keeps coming back to me. Again and again.
When you add a solution to Source Control in Team Foundation Server (TFS) for the first time there are several ways with their respectively pros and cons. This is how i do it:
- ith Source Control - create a folder hiearchy that is applicable for your project. Say for example $\[ProjectName]\[SolutionName]\[Branch]. For example $\SakDotNet\BrevMallar\Main
- ow open the solution in Visual Studio
- igh-click the solution and choose Add Solution to Source control… (Note! If you don’t see that choice in the menu see below)
- se Source Control and Add file(s) for any additional files that not is included in the solution (or was missed by the way…)
Well - the simplest case is easy enough but if something goes wrong (as it just now did for me) there are some troubles that needs to be solved.
Just now for example i added my solution on a folder “too low” forming the path $\SakDotNet\BrevMallar\Main\Main to the .sln-file which of course is not what i want. So i did an Undo Checkout of everything but lo and behold when i tried to repeat the steps above the Add Solution to Source control did not appear. Why?
For some reason the connection to Source Control is included in the proj-files and the solution-files. To remove this dependency go:
- pen the solution in Visual Studio
- elect the solution file
- o File->Source control->Change Source Control.
- n the dialog box choose Unbind for all the projects
- ow you can choose Add solution to Source control again according to the steps above