Currently no support of VS2012


Due to the fact that the current version of the Power Tool is not compatible to Visual Studio 2012, there won´t be an upgrade for the Code Metrics Viewer extension. There is a suggestion on Microsoft´s user voice portal to either open up the code metrics calculation interface, or to provide a new version of the commandline utility, that is not dependent on Visual Studio 2010. Using the following link you can vote for it: http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/3014740-please-update-visual-studio-metrics-power-tool-to

Update, 2013/01/7: I just used some time to play with the Roslyn CTP and created a tool that can calculate metrics from syntax trees and semantic models (in strict sense a replacement for the Power Tool, that does not act on IL, but on source code). By now, I can calculate the same metric results provided by the Power Tool for C# projects and I also added some new metrics.

Update, 2013/01/14: I started to make the extension available to Visual Studio 2012; I just ported the existing code base and removed everything related to Microsoft´s power tool, that can´t be used anymore. The tool-window get´s a complete make-over supporting both the dark- and light theme. Maybe I have to replace functionality which is dependent on Windows Forms by using WPF, but I don´t know yet. The toolbar is now a native toolbar, that fits much better into the selected theme. As long as Roslyn isn´t ready-to-market, this extension will be a CTP as well, that requires an existing installation of the Roslyn components.

Update, 2013/01/16: A first look at the new UI…

dark-theme-ui

Update, 2013/01/25: I worked alot on the user-interface… Instead of reusing the existing win-forms tree-listview implementation from the previous version , I decided to create a tree-listview using WPF. I am quite familiar with WPF, so I thought the hardest part of the entire project would be the implementation of the actual metric calculation functionality (which I have achieved within a couple of hours), but in the end I used more time to style the WPF listview (thanks a lot to a swedish friend of mine, who helped me to solve some very tricky issues and polish it). It was well worth investing the time, because the new control allows to scroll horizontally, the scrollbars are themed automatically, positioning of grid columns is now supported and I was able to remove some code that required P-Invoke (think this is a step in the right direction).

Update, 2013-01-27: I spiled Visual Studio´s glyph-service to show icons in the results view…

dark-theme-ui-2

Update, 2013-02-02: The extension is almost feature complete; I am working on some details now. For instance, the new version of the tool doesn´t show a progress-dialog anymore. Instead it has a thin progress-indicator that is embedded into the view (so it behaves the same way as many other tool windows in Visual Studio do).

dark-theme-ui-3

I reworked the trend icons (up- and down-arrows) and used the color´s of Visual Studio´s light theme, so I can switch luminosity depending on the selected theme, to make them look good…

dark-theme-ui-4

dark-theme-ui-5

Advertisements

2 thoughts on “Currently no support of VS2012

  1. When do you expect to have this for VS2013?
    This code is in any public source control? Can I participate?

    • The code is not public (and probably won´t in the future). As long as Roslyn is not RTM, I won´t invest any time to upgrade the project and create a release for Visual Studio 2013.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s