classes and methods report - visual-studio-2010

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.

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.

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.

Related

Tool "Code Map" of VS2012 in VS2010

I'd like to use Code Map, which can be used in Visual Studio 2012, also in Visual Studio 2010.
If you don't know what Code Map is, this is how it looks like:
here's a tutorial from Microsoft: http://msdn.microsoft.com/en-us/library/vstudio/dn194476.aspx
Is it somehow possible to use this in VS2010 or is there any similiar tools, which displays the different method calls? By this I want to display a method Method1() which calls another method called Method2(). This should be displayed like in the CodeMap (not by using hierarchy call, I want to see it with a UI). It should be free or an extension for VS2010.
I'm not aware of a free version that offers something that the Visual Studio 2012 Ultimate Edition offers, but you have a few alternatives:
NDepend features a Call Graph option
You can open the VS2010 solution in VS2012
Debugger Canvas offers a similar feature while debugging
Architecture Explorer Dependency Graphs and Sequence Diagrams

Debug a report using Visual Studio

I have a problem with my SSRS report when it runs from Dynamic ax 2012. I debugged it and I found out that the problem is with my SSRS report that I created in Visual Studio. I want to debug it there, but when I want to "Attach to process" I can't find ReportingServicesService.exe, because my Report Service is located on another server.
Please help me: what should I do to debug SSRS reports in Visual Studio?
I have SQL Server 2008, Visual Studio 2010, and ax 2012.
The problem is that I didn't write any code in my report: I just use a data provider in my report, but debugging the data provider code shows that the problem is in my report.
A way you can test your report is to create labels with the parameters values and othes, just to be sure that the filters or the calculated values are ok.
I'm afraid that what you seem to want is not possible: there is no way to set breakpoints in reports and debug them like you would a regular .NET app. You haven't specified what type of problem you're facing, but in general you'll have to resort to more basic "debugging" techniques:
In some cases binary search may be your best bet
If you have a clue on where the problem lies you may be able to debug that part seperately (say the data shown is incorrect, so you could debug the query seperately, in a different tool such as SSMS)
As mentioned by #Rednaxel you can use "printf-debugging" to check parameters, expressions, etc.
If you've narrowed down the problem but can't find a solution you can always ask a question about that problem here, of course.

Team City and Visual Studio 2010 and Coverage Tool

In my team we shall use Visual Studio 2010 and .NET 4.0 as soon as possible and I have a question regarding VS 2010 and Team City.
In VS2010 there is a simple tool to measure mstest coverage. Question: Is it possible to read the result of ms-Coverage from team city?
If yes, how do we set up that configuration.
best Regard
Henrik
Yes, you can use the vsinstr.exe and vsperfmon.exe command lines tools to generate coverage data. See Code Coverage with Visual Studio.
Once you have the code coverage files, you need to get TeamCity to report the data. This article should get you started, in particular, look under the "Configure TeamCity to display statistics" header.

Export Visual Studio test results in some document / report format?

It is possible to export/print Visual Studio test results in some document format, maybe including test details?
Thanks
I don't know MSTest all too good, but you can run the Visual Studio tests via the Gallio framework (which is free, you can get it here), and that gives a very nice (and very detailed) test report.
HTH!

Can Visual Studio 2005 Pro generate UML style class diagrams?

Can Visual Studio 2005 Pro generate UML style class diagrams?
You can click on the magnifier icon in Solution Explorer window. Then the diagram will be generated.
2005 does not have a UML modeler. The class designer mentioned above will allow you to model and code gen your classes but it is not a UML tool per-say. If you're not concerned with code gen from the model then I would suggest to just use Viso. If you do want to generate code from a true UML model then you may want to consider something like Enterprise Architect.
2010 Team System how-ever is supposed to have full UML modeling and code generate built in. Only one more year to wait :-P
Yes
Some details from that page:
Visual Studio 2005 Class Designer
Visual Studio .NET 2003
Applies to: Visual Studio® 2005
Summary:
The Visual Studio Class Designer lets you visualize the structure of classes and their relationships, create new classes using a visual design environment, and easily refactor classes. This whitepaper walks you through some of these tasks. (7 printed pages)
Introduction
The Visual Studio Class Designer is a fully-functional, visual design environment for the Common Language Runtime. The Visual Studio Class Designer lets you visualize the structure of classes and other types, and through these visual representations edit their source code. Changes made to the class diagram are immediately reflected in code, and changes made to the code immediately affect the appearance of the designer. This synchronous relationship between designer and code makes it easy to create and configure complex CLR types visually.
The Class Designer contains features specifically designed to help you refactor your code as well as allow you to easily rename identifiers and override methods. You can automatically generate classes and structures, and implement interfaces by automatically generating stubs.
Finally, Class Designer also serves as a communication tool by letting you easily communicate areas of your code base to colleagues. Class diagrams can be printed to hard copy or saved as images for display in HTML pages or PowerPoint presentations.
Note:
This document was developed prior to the product's release to manufacturing, and as such, you may find inconsistencies with the details included here and those found in the shipping product. The information is based on the product at the time this document was created and should be used for planning purposes only. Information is subject to change at any time without prior notice...

Resources