I found it in Visual Studio. go to next menu
Analysis> Calculate code metrics to solve
It will display the "Code Metric Result" window. In this window, select export to excel, and you will get a report with all the projects, namespaces, classes, methods and some other details about them in the Excel file.
Maged farag
source share