views:

181

answers:

2

Hello!

Does anyone know how to extract/generate Meta data from an .NET assembly just like VS "Go to definition" do. When you do this within Visual Studio you get generated CS class files in the temp directory with Meta data classes.

I´m looking for an automatically way to extract/generate CS classes from an entier Assembly.

Is there any tool for this? I have looked at ILDASM, BINDUMP, SVCUTIL etc and a bunch of decompilers. But i cannot find a tool to do what I want.

+3  A: 

Check out the .NET Reflector: http://www.red-gate.com/products/reflector/

Kyle Trauberman
Already done that. Tried several of those software.
if you want an exe to decompile it for you, then reflector is the tool. it will decompile the whole dll for you. you may need one of the plugins though.
Zack
+2  A: 

VS's Go to definition basically just uses the standard .NET reflection API to extract the public API of the class and present it to you.

There is no decompilation necessary to duplicate this, since the implementation is not provided, just the public API.

Reed Copsey
Yes, I know that but was looking for an out of the box software/EXE that would go through the Assembly for me and generate CS classes. But maybe I just have to spende a few hours writing the "loop" myself
If you want some sample code for looking through types, and extracting data, there's some here: http://trac.assembla.com/plugintoolkit/browser/trunk/Pluto.Core/Development
Reed Copsey