image47dd1de4

Good,

When you work with any strategy of Branching (but do you,Ā out of my blog!Ā should) is very common that you are opening the same solution in the branch of development evolutovo and in the branch of maintenance or corrective.

The following example shows how we have the solution ClassLibrary1 and the files in the branches [DEV] and [MAIN]

image

The problem often come when you open a solution, for example the DEV branch and you despistas and you get to change it as if it were that of the MAIN branch.

A useful way of differentiating the elements of each branch, is to take advantage of a new feature of theĀ 2010 VSCommandsĀ forĀ Visual Studio 2010Ā that lets you define a “friendly name” for solutions.Ā To work with this feature, select the solution and see the properties of the same, where we will see 2 new properties.

image

Property [friendly name solution path Reg] we define a regular expression in which we can create one or more groups that we can then use in property [friendly name] to make use of them.Ā In this case, the group is calledĀ {BranchName}and show it after the name of the solution.

Open the solution from theĀ DEVĀ branch you see that this description applies to the title of the window and also in thesolution Explorer.

image

If you instead open the solution from theĀ MAINbranch, we will see the description for this branch.

image

For more information about theĀ VSCommands 2010:Ā http://vscommands.com/features/

Greetings @ Here

The Bruno

Ā Ā Ā 

One response to “[VS2010] HowTo: Differentiate the same solution in different branches (thanks VSCommands2010)”

  1. […] [VS2010] HowTo: Differentiate the same solution in different branches (thanks VSCommands2010) […]

    Like

Leave a reply to [English] Visual Studio 2010 ALM | El Bruno Cancel reply

Discover more from El Bruno

Subscribe now to keep reading and get access to the full archive.

Continue reading