Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Annotate changesets from source control in Visual Studio 2010

I use Visual Studio 2010 in combination with the Team Foundation Server 2010 and the Power Tools.

In my code files (eg. \*.cs) I can right click in the editor and select Source Control"->"Annotate to get an additional column where I can see, who last modified the lines. This doesn't seem to work in my MVC-Views (\*.cshtml).

Is there a limitation of file types in the extension/function of the power tools?

How can I enable this very useful function for all text-based file types in Visual Studio?

like image 702
Konrad Avatar asked May 02 '12 11:05

Konrad


1 Answers

Chances are the cshtml file type is not recognized by TFS as a text kind, so the Annotate feature is disabled. To check that, go to your Team Project Source Control settings, in the File Types tab and look for the extension. If it's not there, add it and set it as a Text type and restart Visual Studio.

like image 170
Nock Avatar answered Sep 23 '22 00:09

Nock