views:

195

answers:

4

Is there a quick & dirty way of obtaining a list of all the classes within a Visual Studio 2008 (c#) project? There are quite a lot of them and Im just lazy enough not to want to do it manually.

A: 

I've had success using DoxyGen to generate documentation from the XML comments in my projects - a byproduct of this is a nice, hyperlinked list of classes.

Dexter
+5  A: 

If you open the "Class View" dialogue (View -> Class View or Ctrl+W, C) you can get a list of all of the classes in your project which you can then select and copy to the clipboard. The copy will send the fully qualified (i.e. with complete namespace) names of all classes that you have selected.

Wolfwyrd
A: 

Maybe you can write an XSL/XSLT to display only the class names from the XML generated by the XML documentation, if you have any.

Biri
A: 

I would probably build the assembly, and then use reflection to iterate over all the exported types... If you want some sample code you can find inspiration in http://www.timvw.be/presenting-assemblytypepicker/.

timvw