Monday, May 24, 2010

How to generate list of files , classes and methods in a project?

I would like to generate the following reports in a Microsoft Visual Studio (VB) and Visual Studio .Net (C#)0 Projects.





Generate a report of Missing files in the project


Generate a report of list of classes, methods and description of the classes (based on comments)





How do I do that ? Is it possible to using VS.NET or any plug-in available?





Thanks a lot in advance.


Yogi

How to generate list of files , classes and methods in a project?
To know what is missing, you need to know what is required - since a project can be made up of source files, source files, documentation, content, resources and references. This means reading the solution (sln) and project files (csproj) files and possibly the resx files of the project.





Also, to know that something can be found, you need to know the directories visual studio uses to resolve file locations. This is the local directory, the GAC, a directories listed in the .NET / Assemblies hive in the registry. Also, references can be to item within a solution, and thus may use the local GUID for the project.





Building this report isn't easy, and Visual Studio tells you what is missing already. If you're using Visual Studio, simply attempt to compile the solution, and see what it says.





If you want to build a report of what is IN your solution, try using nDoc. It reads your solution and output a web site of all your comments you've put into the code (C#).


No comments:

Post a Comment