Bringing you news, technical articles, and other useful content about Visual Studio ALM and Team Foundation Server
More videos »
Quick Response samples provide information directly from Visual Studio ALM Rangers working with the Microsoft Visual Studio Product Group and Microsoft Services, in response to feature gaps to supplement the product and knowledge base information.
It is not simple to implement a consistent branching model, that complies with the VS TFS Branching and Merging Guide. Ultimately you would want support for this inside Visual Studio.
Team Foundation Server has extensive support for version control and branching management through the object model. You can create your own solution, using the sample Visual Studio Extension, in the Quick Response download package. For an overview see the Quick Reference Sheet, which is also included in the sample code package.
To use the sample, proceed as follows:
The Visual Studio Extension is built on top of the same engine as the command line utility.
The Engine offers two core services to its clients. The First is a Branch Plan Catalog Service listing and providing information like Name, Description and the defined arguments for all available branch plans.
The second service is the Execution Engine that takes a list of arguments and a branch plan and simply executes the selected Branch Plan.
The Execution Engine is based on the Microsoft Extensions Framework and a defined schema for defining branch plans. This makes solution very configurable and extensible. The Engine simple assemblies and execute them, as defined in the .branchplan files. Each Action in the .branchplan corresponds to an MEF extended class in an assembly. There are a limited set of Actions provided (and needed) to create the source control structure needed to comply with the different branch plans.
The core actions provided are:
If you want you could easily add your own actions by building a MEF extended assembly, place the assembly in the same directory, and add your action to the .branchplan file.
Related Posts
I have worked it out and it works great. Thanks for that!
I want to go a step further and use this function to create this initial structure from powershell. Is there a possibility to do that?