views:

138

answers:

1

Our organization recently got TFS 2008 set up ready for our use. I have a practice TeamProject available to play with.

To simplify slightly, we previous organized our code on disk like this:

-EC
  - Main
     - Database
         - someScript1.sql 
         - someScript2.sql 
     - Documents
         - ReleaseNotes_V1.doc 
     - Source
        - Common
           - Company.EC.Common.Biztalk.Artifacts [folder]
           - Company.EC.Common.BizTalk.Components [folder]
           - Company.EC.Common.Biztalk.Deployment  [folder]
           - Company.EC.BookTransfer.BizTalk.sln
        - BookTransfer
           - Company.EC.BookTransfer.BizTalk.Artifacts [folder]
           - Company.EC.BookTransfer.BizTalk.Components [folder]
           - Company.EC.BookTransfer.BizTalk.Components.UnitTest [folder]
           - Company.EC.BookTransfer.BizTalk.Deployment [folder]
           - Company.EC.BookTransfer.BizTalk.sln

I'm trying to decide, do I want to check in the entire c:\EC directory? Or do I want to open each solution and checkin. What are the pros and cons of each? It seems like by doing the "Add Files/Folder" option, I could check in everything at once and it would match the disk structure.

It also looks like that if I check in each solution separately, that creates another working folder in my Workspace. I think if I check in by "add files/folder", I will have one workspace and that would be better.

But most of the books and samples I see talk about checking in projects and solutions.

P.S. I know I need to add more to my disk structure in accordance with the Branch/Merge guidelines, but that is not the question I'm asking here.

Thanks, Neal Walters

+1  A: 

It's fine to check in outside of the solution explorer (e.g. from the Source Control explorer). The one downside if you do that is that your solutions will not initially be bound to source control. The next time someone would check out one of those files, they would have to manually (through a dialog) bind to the source control server.

If you have a limited number of solutions, adding the solution to source control is feasible. However, make sure that you have those files in a directory mapped to your current workspace.

Robaticus
I'm still confused what is the ideal option then. It seems like everyone would consistently use one or the other. If I check in solutions, then how do I check in things like docs, release notes, help files, etc... Should they all be added to the solution, even though they are in a directory that is at a sibling level to the solutions and projects? It seems like when you browse in "Source Explorer" you would want either a directory hierarchy or a list of solutions, not a mix of the two. More thoughts?
NealWalters
We made the decision early on to try to keep our source repository clean, and only housing source code. We use the TFS Project Portals (sharepoint) for the other stuff. If you want to version control docs, help, etc., along with your source, you can add it to your project, just treat it as content.
Robaticus