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:
- With Source Control - create a folder hiearchy that is applicable for your project. Say for example $\[ProjectName]\[SolutionName]\[Branch]. For example $\SakDotNet\BrevMallar\Main
- Now open the solution in Visual Studio
- Righ-click the solution and choose Add Solution to Source control...
(Note! If you don't see that choice in the menu see below) - Use 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:
- Open the solution in Visual Studio
- Select the solution file
- Go File->Source control->Change Source Control.
- In the dialog box choose Unbind for all the projects
- Now you can choose Add solution to Source control again according to the steps above
No comments:
Post a Comment