Is there any tool or extension to generate a report which contains data about classes and methods? For example, show a summary of all classes and the methods included in each class with the count of both.
Asked
Active
Viewed 5,532 times
2 Answers
13
I found it in Visual studio. go to the following menu option
Analyze > Calculate Code Metrics for Solution
It will show Code Metrics Result window. From this window choose export to excel and you'll get a report with all the projects, Namespaces, Classes, Methods and some other details about them in Excel file.

Maged Farag
- 471
- 5
- 12
3
NDepend lets you perform all kinds of queries about your code. I can't say I've used it myself, but I would be surprised if it didn't let you generate reports.
See reports generated by NDepend here.
See explanations about NDepend code metrics here.
Also you can get all these result both in Visual Studio 2017, 2015, 2013, 2012, 2010, and also in Visual Studio Team Services.

Patrick from NDepend team
- 13,237
- 6
- 61
- 92

Jon Skeet
- 1,421,763
- 867
- 9,128
- 9,194