What parts of .NET framework is my code using?

  • Thread starter Thread starter .
  • Start date Start date
?

.

I would like to get the summary of namespaces, classes, interfaces,
methods and members used being used in my code.

Is there a tool I can use to get that information?

I want to compare that summary to the Mono Class Status list:
http://www.go-mono.com/class-status.html

The aim is to know if my code is able to run on Mono, the .NET
implementation on Linux.

Thanks to everyone!
ívan
 
ívan,

I think that Reflector (the decompiler written by Lutz Roeder) would do
just fine. I believe that you could go to the entry point of your app, and
then just look at the call stack. It will allow you to drill down all the
calls that are made from that method. Of course, if you have some other way
of making a method call (like through event handlers for example), you will
have to find the entry point for these and then look at those call stacks as
well.

Hope this helps.
 
Nicholas,

First of all, thanks for your answer.

The code I want to be analyzed has been migrated from Java using
Microsoft's JCLA.
Since several Java classes have no direct mapping into C#, the code I
got cannot be compiled yet. Before keying in modifications, I need to
know if it is worth (it is worth if the .NET classes in the code are
to be implemented on Mono 1.0
(http://www.go-mono.com/class-status.html)).

Even if I could compile and execute the code, the application is too
big to navigate the stack during execution. Impossible to be
exhaustive.

What I would need is a tool that analyzes the code itself and gets an
exhaustive summary of evrey call to the .NET Framefork.

Thanks again,
Ívan
 
There is some utility that is supposed to avoid you distributing the entire
Framework with applications - it allows just bits of the Framework to be
packaged up and distributed. I can't remember if it analyses your code or
whether it's a manual process, and I also can't remember the name of it,
which makes my input next to useless, I guess - but Google and you may find.
If you can find it, it should let you know what stuff you're using.

If, as from your second post, you've got some Java that can't be mapped to
C# this might also not help. You're going to have to do something with the
Java though - unless it's loads of work you might be best just doing it any
seeing what happens under Mono?

Steve
 
Back
Top