Exporting the VS 2010 Code Analysis reports
-
Thursday, March 22, 2012 7:18 AM
Hi,
Is there any option to export the warnigns\errors reported by VS Code Analyzer.
I dont seee any export to excel option similar to Code Metrics results. Is there any way to customize the results window
to have the option to export to an excel or notepad? can i have other alternative?
All Replies
-
Thursday, March 22, 2012 12:48 PM
The simplest way is to just copy/paste the errors tool window from Visual Studio to Excel. Just do ctrl-A, ctrl-c and then paste into a blank sheet.
It's also relatively simple to convert the xml output of Code Analysis to a HTML table using XSLT and open that in Excel.
My blog: blog.jessehouwing.nl
- Proposed As Answer by Jack Zhai - MSFTMicrosoft Contingent Staff, Moderator Wednesday, March 28, 2012 7:21 AM
- Marked As Answer by Jack Zhai - MSFTMicrosoft Contingent Staff, Moderator Friday, March 30, 2012 1:44 AM
-
Monday, March 26, 2012 5:38 AM
Hi Jesse,
Is there any way to customize the errors tool window of VS 2010 for additional options like export?
-
Monday, March 26, 2012 9:13 AM
Just like anything in Visual Studio, it should be extensible using the Visual Studio SDK. It's probably easiest to add a custom context menu item. You'll need to buidl your own VSPackage and register the command in there. Then through the API you can access the Error list. I'm not sure if filtering can be done easily, but exporting it shouldn't be too hard.
My blog: blog.jessehouwing.nl

