5
votes

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?

2

2 Answers

4
votes

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.

1
votes

For me, if I right click inside the cshtml file editor and go to the Source Control sub-menu, then Annotate is not there. However, if I right click the file in the Solution Explorer and go to the Source Control sub-menu, then Annotate is there.