SlideShare a Scribd company logo
Branching
    in
 TFS 2010

 Part V
   by John Varan
Branching in TFS 2010: Part V
 Sharing Common Code

 Several Options
 • Share source code as projects
 • Manually copy assemblies
 • Branching
Branching in TFS 2010: Part V
 Sharing Source Code

 • Multiple versions are too hard to
   manage
 • Allows access to source to all
   developers
 • Increases build times of all projects
Branching in TFS 2010: Part V
 Manually Copying Assemblies

 •   Multiple versions easier to manage
 •   Restricts access to source code
 •   Build times are not affected
 •   No tracking or auditing
Branching in TFS 2010: Part V
 Branching Assemblies

 • All advantages of manually
   copying
 • TFS provides tracking and auditing
 • TFS provides ability to rollback
 • Slightly more complicated (if new
   to branching)
Branching in TFS 2010: Part V
 Setting it Up:

 • Need a “Deploy” folder in common
   library project
 • Built assembly goes in here for
   each release
 • This can be automated
Branching in TFS 2010: Part V
 Folder Structure of Shared Library
Branching in TFS 2010: Part V
 Automating the “Deploy” folder:

 • Post-build event to copy output
   assembly to “Deploy” folder
 • Existing assembly might be read-
   only
 • Pre-build event to check out
   assembly
Branching in TFS 2010: Part V
 Pre-Build Event
Branching in TFS 2010: Part V
 Post-Build Event
Branching in TFS 2010: Part V
 Set Up of Referencing Application

 Needs a “Lib” folder. Two Options:

 • One for entire solution
 • One for each project
Branching in TFS 2010: Part V
 Per Solution

   • Easier
   • No duplicates per project
   • Can only have one version per
     solution
Branching in TFS 2010: Part V
 Per Project

   • Duplicates per project
   • Slightly more complicated
   • Can have different versions
     mixed in solution
Branching in TFS 2010: Part V
 Sharing the Assembly

 • Pick a specific release branch
 • Open the “Deploy” folder
 • Branch the actual .dll file to
   another project’s “Lib” folder
Branching in TFS 2010: Part V
 Sharing the Assembly
Branching in TFS 2010: Part V
 Sharing the Assembly
Branching in TFS 2010: Part V
           End of Part V

More Related Content

PPTX
Branching in TFS 2010 Part III (End-User Pattern)
PPTX
Branching in TFS 2010 Part II (Third Party Pattern)
PPTX
Branching in TFS 2010 Part IV (Internal Pattern)
PPTX
Branching in TFS 2010 Part I (Branching Theory)
PDF
How to add a new font type
PPTX
Software Versioning by mohammad al banna
PPT
Developer Ignite Scott Cate Versioning
PPTX
Windows Phone 8 - 1 Introducing Windows Phone 8 Development
Branching in TFS 2010 Part III (End-User Pattern)
Branching in TFS 2010 Part II (Third Party Pattern)
Branching in TFS 2010 Part IV (Internal Pattern)
Branching in TFS 2010 Part I (Branching Theory)
How to add a new font type
Software Versioning by mohammad al banna
Developer Ignite Scott Cate Versioning
Windows Phone 8 - 1 Introducing Windows Phone 8 Development

Similar to Branching in TFS 2010 Part V (Sharing Code) (20)

PDF
Branching and Merging and Bears, Oh My!
PPTX
Team Foundation Server - Source Control
PDF
Tfs branching guide_main_2010_v1
PPT
Getting Started With The TFS API
PPT
Tfs development
PPTX
PHX Session #6: More Bang for Your Buck: Getting the Most out of Team Foundat...
PPTX
TFS 2010: Team Development on Crack
PPTX
TFS Source Control Management
PPTX
Session #6: Get More Bang For Your Buck
PPT
Team Foundation Server 2008 Overview
PPT
OTSUG - Migrating to TFS 2010 - Lessons Learned
PPTX
Distribute your code with NUget and build vNext
PPT
The first looks at VSTS2010
PPS
Vb.net session 13
PPTX
Application versioning
PDF
Introduction to TFS 2013
PPTX
Introducing visual studio_2010_v1.0--chappell
PDF
IzPack - fOSSa 2009
PPTX
Tfs Overview
PPS
10 gui 14
Branching and Merging and Bears, Oh My!
Team Foundation Server - Source Control
Tfs branching guide_main_2010_v1
Getting Started With The TFS API
Tfs development
PHX Session #6: More Bang for Your Buck: Getting the Most out of Team Foundat...
TFS 2010: Team Development on Crack
TFS Source Control Management
Session #6: Get More Bang For Your Buck
Team Foundation Server 2008 Overview
OTSUG - Migrating to TFS 2010 - Lessons Learned
Distribute your code with NUget and build vNext
The first looks at VSTS2010
Vb.net session 13
Application versioning
Introduction to TFS 2013
Introducing visual studio_2010_v1.0--chappell
IzPack - fOSSa 2009
Tfs Overview
10 gui 14
Ad

Recently uploaded (20)

PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Cloud computing and distributed systems.
PDF
Machine learning based COVID-19 study performance prediction
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Big Data Technologies - Introduction.pptx
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
KodekX | Application Modernization Development
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
NewMind AI Monthly Chronicles - July 2025
Advanced methodologies resolving dimensionality complications for autism neur...
Cloud computing and distributed systems.
Machine learning based COVID-19 study performance prediction
Unlocking AI with Model Context Protocol (MCP)
Building Integrated photovoltaic BIPV_UPV.pdf
Big Data Technologies - Introduction.pptx
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
KodekX | Application Modernization Development
Review of recent advances in non-invasive hemoglobin estimation
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
NewMind AI Weekly Chronicles - August'25 Week I
Diabetes mellitus diagnosis method based random forest with bat algorithm
Dropbox Q2 2025 Financial Results & Investor Presentation
The AUB Centre for AI in Media Proposal.docx
Reach Out and Touch Someone: Haptics and Empathic Computing
Spectral efficient network and resource selection model in 5G networks
20250228 LYD VKU AI Blended-Learning.pptx
Chapter 3 Spatial Domain Image Processing.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
NewMind AI Monthly Chronicles - July 2025
Ad

Branching in TFS 2010 Part V (Sharing Code)

  • 1. Branching in TFS 2010 Part V by John Varan
  • 2. Branching in TFS 2010: Part V Sharing Common Code Several Options • Share source code as projects • Manually copy assemblies • Branching
  • 3. Branching in TFS 2010: Part V Sharing Source Code • Multiple versions are too hard to manage • Allows access to source to all developers • Increases build times of all projects
  • 4. Branching in TFS 2010: Part V Manually Copying Assemblies • Multiple versions easier to manage • Restricts access to source code • Build times are not affected • No tracking or auditing
  • 5. Branching in TFS 2010: Part V Branching Assemblies • All advantages of manually copying • TFS provides tracking and auditing • TFS provides ability to rollback • Slightly more complicated (if new to branching)
  • 6. Branching in TFS 2010: Part V Setting it Up: • Need a “Deploy” folder in common library project • Built assembly goes in here for each release • This can be automated
  • 7. Branching in TFS 2010: Part V Folder Structure of Shared Library
  • 8. Branching in TFS 2010: Part V Automating the “Deploy” folder: • Post-build event to copy output assembly to “Deploy” folder • Existing assembly might be read- only • Pre-build event to check out assembly
  • 9. Branching in TFS 2010: Part V Pre-Build Event
  • 10. Branching in TFS 2010: Part V Post-Build Event
  • 11. Branching in TFS 2010: Part V Set Up of Referencing Application Needs a “Lib” folder. Two Options: • One for entire solution • One for each project
  • 12. Branching in TFS 2010: Part V Per Solution • Easier • No duplicates per project • Can only have one version per solution
  • 13. Branching in TFS 2010: Part V Per Project • Duplicates per project • Slightly more complicated • Can have different versions mixed in solution
  • 14. Branching in TFS 2010: Part V Sharing the Assembly • Pick a specific release branch • Open the “Deploy” folder • Branch the actual .dll file to another project’s “Lib” folder
  • 15. Branching in TFS 2010: Part V Sharing the Assembly
  • 16. Branching in TFS 2010: Part V Sharing the Assembly
  • 17. Branching in TFS 2010: Part V End of Part V