How to Avoid Working on the Wrong Branch

branchingteam-foundation-serverversion controlvisual studio

Being careful is usually enough to prevent problems, but sometimes I need to double check the branch I'm working on (e.g. "hmm… I'm in the dev branch, right?") by checking the source control path of a random file.

In looking for an easier way, I thought of naming the solution files accordingly (e.g. MySolution_Dev.sln) but with different file names in each branch, I can't merge the solution files.

It's not that big of a deal but are there any methods or "small tricks" you use to quickly ensure you're in the correct branch? I'm using Visual Studio 2010 with TFS 2008.

Best Answer

I am using this http://visualstudiogallery.msdn.microsoft.com/f3f23845-5b1e-4811-882f-60b7181fa6d6

Updates your title to for example:

Development\myproject

or

Main\myproject

or

Release\myproject

Hope it helps