SlideShare uma empresa Scribd logo
1 de 17
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

Mais conteúdo relacionado

Semelhante a Branching in TFS 2010 Part V (Sharing Code)

Semelhante a Branching in TFS 2010 Part V (Sharing Code) (20)

Writing Services with ZF2
Writing Services with ZF2Writing Services with ZF2
Writing Services with ZF2
 
Git Workflows
Git WorkflowsGit Workflows
Git Workflows
 
ZF2: Writing Service Components
ZF2: Writing Service ComponentsZF2: Writing Service Components
ZF2: Writing Service Components
 
TUTTO SU VISUAL STUDIO ALM 2015
TUTTO SU VISUAL STUDIO ALM 2015TUTTO SU VISUAL STUDIO ALM 2015
TUTTO SU VISUAL STUDIO ALM 2015
 
Source control - what you need to know
Source control - what you need to knowSource control - what you need to know
Source control - what you need to know
 
Porting Projects to .NET 5
Porting Projects to .NET 5Porting Projects to .NET 5
Porting Projects to .NET 5
 
2013 t-dose - libre office easyhacks
2013   t-dose - libre office easyhacks2013   t-dose - libre office easyhacks
2013 t-dose - libre office easyhacks
 
CCI 2017 - Introduzione a SharePoint Framework (SPFx) - Fabio Franzini
CCI 2017 - Introduzione a SharePoint Framework (SPFx) - Fabio FranziniCCI 2017 - Introduzione a SharePoint Framework (SPFx) - Fabio Franzini
CCI 2017 - Introduzione a SharePoint Framework (SPFx) - Fabio Franzini
 
Plug-ins & Third-Party SDKs in UE4
Plug-ins & Third-Party SDKs in UE4Plug-ins & Third-Party SDKs in UE4
Plug-ins & Third-Party SDKs in UE4
 
Embedded Systems: Lecture 10: Introduction to Git & GitHub (Part 1)
Embedded Systems: Lecture 10: Introduction to Git & GitHub (Part 1)Embedded Systems: Lecture 10: Introduction to Git & GitHub (Part 1)
Embedded Systems: Lecture 10: Introduction to Git & GitHub (Part 1)
 
Streams in Parallel Development by Sven Erik Knop
Streams in Parallel Development by Sven Erik KnopStreams in Parallel Development by Sven Erik Knop
Streams in Parallel Development by Sven Erik Knop
 
The Latest Status of CE Workgroup Shared Embedded Linux Distribution Project
 The Latest Status of CE Workgroup Shared Embedded Linux Distribution Project The Latest Status of CE Workgroup Shared Embedded Linux Distribution Project
The Latest Status of CE Workgroup Shared Embedded Linux Distribution Project
 
Building extensible application using MEF
Building extensible application using MEFBuilding extensible application using MEF
Building extensible application using MEF
 
Staying connected: An Overview of Announcements from Microsoft’s Connect();
Staying connected: An Overview of Announcements from Microsoft’s Connect();Staying connected: An Overview of Announcements from Microsoft’s Connect();
Staying connected: An Overview of Announcements from Microsoft’s Connect();
 
Git for Excel
Git for ExcelGit for Excel
Git for Excel
 
Lecture 1 introduction to vb.net
Lecture 1   introduction to vb.netLecture 1   introduction to vb.net
Lecture 1 introduction to vb.net
 
SQL Server DevOps Jumpstart
SQL Server DevOps JumpstartSQL Server DevOps Jumpstart
SQL Server DevOps Jumpstart
 
Continuous Integration
Continuous IntegrationContinuous Integration
Continuous Integration
 
Introduction to SharePoint Framework (SPFx)
Introduction to SharePoint Framework (SPFx)Introduction to SharePoint Framework (SPFx)
Introduction to SharePoint Framework (SPFx)
 
Git
GitGit
Git
 

Último

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Último (20)

[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 

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