Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 89137
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T22:40:10+00:00 2026-05-10T22:40:10+00:00

I have been working on standardizing the source control structure for our Team Foundation

  • 0

I have been working on standardizing the source control structure for our Team Foundation Server rollout for the new year. I have started by using the Microsoft Team Foundation Server Branching Guidance documentation available on CodePlex.

I was hoping to get some feedback and answers to a few of the specific questions I have about the proposed structure. When it comes to structuring source control in TFS, I have learned that there are so many ‘standards’ to choose from that there is not really a standard.

First, I will outline and describe the decisions and usage.

$/                                                     {Team Project}/                                        {Subproject}/                                          Development/                                           Trunk/                                                 Source/                     Tests/                     Sandcastle/                     TeamBuildTypes/                         {Build Name}/                 Branches/                     {Branch Name}/                         Source/                         Tests/                         Sandcastle/                         TeamBuildTypes/                             {Build Name}/              Integration/                 Source/                 Tests/                 Sandcastle/                 TeamBuildTypes/                     {Build Name}/             Production/                 Releases/                     {Release Version}/                         Source/                         Tests/                         Sandcastle/                         TeamBuildTypes/                             {Build Name}/                 Branches/                     {Branch Name}/                         Source/                         Tests/                         Sandcastle/                         TeamBuildTypes/                            {Build Name}/ 

The general logic is that a Team Project can contain either a single logical project (where there would be no {Subproject} entry) or multiple related projects in the form of a product or tool suite. The three major containers are called Development, Integration, and Production.

Within the Development container’s Trunk, there are provisions for both the projects which make up the product in the Source folder, with corresponding unit tests available in the Tests folder. A majority of minor development would occur in the trunk, with branching available through the Trunk folder’s sibling Branches folder, which acts as a branching container. One or more solution files would live within the Trunk, allowing for branches at that level to capture the solution, source, and unit tests.

The Integration container, often called ‘main’ in non-TFS implementation, is solely used to integrate Changesets from Development to create a stable and testable build. It is initially created as a branch from the Development container once a testable product has been attained. The builds from this container will be used for our testing environment and load testing environment. We choose to include load testing with testable builds so that we can monitor for changes in performance, being able to rapidly isolate Changesets that may have contributed to any irregularities.

Production is used to produce pre-production and production quality builds. It is initially created as a branch from the Integration container once a stable build has been recommended for release. Within the Releases folder, a ‘branch by release’ structure is followed, providing snapshotting and isolation in a single place. (For example, when Release 1.1 is ready for a pre-production build, the stable Integration container is branched into a new Release 1.1 folder in the Production/Releases structure. Subsequent RCs and RTWs/RTMs are promoted into this folder, as well.) A branching structure is also present, as seen in the Branches container. This allows for ‘hotfixes’, usually a revision marker (Major.Minor.Revision). The branch is created from the current release and merged back into the new revision marker – like Release 1.1.1. The Changeset would be reverse integrated to the Development container’s Trunk upon acceptance.

We feel that this structure is a fair balance between robustness and complexity. But there are a few nagging questions that I can not logically fit into the model. They are:

Team Build – The Development and Integration containers will initially start out as being nightly builds, eventually moving to Continuous Integration (CI). The Production container will be manually built.

  • Where should the build definitions live? Edit – Based upon a couple of responses, the TeamBuildTypes folder has been moved to the trunk and branched to the appropriate containers. This does, however, lead to a new question (follows).

  • By having the TeamBuildTypes folder in their appropriate containers, does that mean that all build definitions will be reproduced between the appropriate folders? For example, having a build definition for development quality builds, as well as testable builds, etc. all living in all TeamBuildType folders throughout the structure.

Documentation Generation – We use Sandcastle to generate documentation. Specifically, we also use Sandcastle Help File Builder to manage the output. This produces a project file in a format specific to SFHB.

  • Should generated documentation be stored in the source control structure?

  • Should documentation be generated for each container, or does it only posses value for pre-production and production quality builds?

  • To preserve fast local build times, should documentation creation be owned by a build definition?

  • Where should the SHFB-specific files live? My initial inkling is to put it as a peer to the Source and Tests folders. I agree with the recommondations that it be a peer to Source and Tests. Diagram changed to reflect this change.

Third Party Binaries

  • Should binaries (controls, libraries, etc.) be stored in source control?

  • If so, should it be it’s own Team Project?

General Documentation – Non-generated documentation, such as requirements, design documents, test plans, etc. are not going to be reflected by a folder in the source control structure. After some research and discussion with my developers and peers, using the built-in Documents folder in Team Explorer provides more benefit, since it mirrors the structure within the Team Project Portal and some (business) users do not need the additional complexity of learning the source control aspect of TFS.


I will update the structure as I get answers to the questions to provide a clearer picture. I also welcome any other comments related to potential changes. If I have any other questions, I will make sure to modify this post.

Edits:

  • Clarification. Source and Tests folders do live under the Integration container, as well.

  • Both Micah and Josh brought up great points regarding third party binaries. Question added regarding the issue.

  • Documentation generation can be slow. Question added regarding whether documentation creation should be owned by a specific Team Build Type.

  • Added resolution related to non-generated documentation, such as requirements, design documents, test plans, etc.

  • Added resolution related to TeamBuildTypes folder for build defintions.

  • Based upon various feedback, moved the TeamBuildTypes folder to the trunk / branch levels.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T22:40:10+00:00Added an answer on May 10, 2026 at 10:40 pm

    I like your idea of putting the Sandcastle files as a peer to Source and Tests, I would add a documentation folder, that would then contain the sandcastle files, and optionally the actual documentation.

    There are definetly differences of opinions and I’m sure I will be downvoted for this (since I have been before). I would put the generated documentation in TFS for a couple of reasons:

    1. Your going to want your documentation with each release, and using TFS is an easy aproach to ensure your documentation stays in the correct place.
    2. Using TFS to store it means everyone will know where to go get the documentation.

    One thing I don’t see which I always struggle with is where to third party dependancies, it might be that they belong down under the source so they are with each project although if you wanted to share them accross projects you could add a new top level node.

    Edit

    For my binaries I usually end up with

    $/ThirdParty/Company/Product/Version/Src(optional)

    So for example I have

    $/ThirdParty/ Microsoft/ EntLib/ 3.1 4.0 ComponentArt/ WebUI/ 2008.1/ Src

    I like to add the source, I’ve had to patch CA’s source which I hate to do but when a third party doesn’t fix the bug you have to resort to this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 145k
  • Answers 145k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer For the record, I was able to get around this… May 12, 2026 at 8:48 am
  • Editorial Team
    Editorial Team added an answer This is probably best done in the PostAuthenticateRequest event. ASP.NET… May 12, 2026 at 8:48 am
  • Editorial Team
    Editorial Team added an answer Seems that they haven't given a callback function to call… May 12, 2026 at 8:48 am

Related Questions

I have been working on a web services related project for about the last
I have been working on some legacy C++ code that uses variable length structures
I have been working on a childish little program: there are a bunch of
I have been working on a wrapper for a COM object that can only

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.