TFS: Doing rollbacks with TFS 2010 and TFS 11

TFS: Doing rollbacks with TFS 2010 and  TFS 11

I got several time questions about how rollback are done with Visual Studio 2010 and Team Foundation Server 2010; instead of repeating myself i’ve decided to write a post :)

Note : although the screenshots are done under Visual Studio 11, the principals are the same with Visual Studio 2010..

In TFS when doing a rollback or cancel a changeset you will get a new version of your file or files with an Edit status:

image

The edit will then be visible in the history after doing a checkin. (you will the be able to rollback your rollback :) )

Update 08/25/2014: corrected output of rollback 22, thanks B€N :)

read more →

VS 2010: Code metrics using command line

VS 2010: Code metrics using command line

Microsoft just release a PowerTools to enable Visual Studio 2010 code metrics analysis using a command line tool :

Visual Studio Code Metrics PowerTool 10.0

The result is stored in an XML file and is unfortunately not integrated to TFS for reporting or TeamBuild but it’s a start! After playing with this tool i’ll come back with a post on how to integrate it inside TeamBuild :)

Carpe Diem.

VS 2010 : Custom graph dependency analyzer

VS 2010 : Custom graph dependency analyzer

After showing you how to customize IntelliTrace, i’ll show you today how you can create your own graph dependency analyzers for VisualStudio 2010 architecture tools.

Before starting here is another warning (still in bold and red so everyone sees it :) ):

Microsoft does not give any documentation or support on all that i will explain because even it’s possible, the functionality is not supported.

Now that you are warned lets start implementing a small analyzer which will show us all nodes starting with “Qetza.”.

First we create a class library and add the following assembly references:

  • Microsoft.VisualStudio.Progression.Common
  • Microsoft.VisualStudio.Progression.GraphModel
  • Microsoft.VisualStudio.Progression.Interfaces

These assemblies are in the sub directory “Common7\IDE\PrivateAssemblies” of your VisualStudio 2010 install directory (by default “C:\Program Files\Microsoft Visual Studio 10.0″).

read more →

VS 2010 : Customize IntelliTrace events

VS 2010 : Customize IntelliTrace events

Today i’ll show you how to customize IntelliTrace in VisualStudio 2010 so that you can trace events from your own methods. But first some warnings (in bold and red so no one misses them :) ):

Microsoft does not give any documentation or support on all that i will explain. There is also a chance that the way you can  customize IntelliTrace will be revamp in the next version of VisualStudio (which might explain the lack of documentation and support).

Now that you’re warned let start and see how we can customize IntellTrace so that we can trace our own method calls! I’ll be using the following class for this post:

read more →