[Mono-dev] How does mono load the assemblies ?

Carlos Martín Nieto carlos at cmartin.tk
Tue Aug 16 19:40:01 EDT 2011

On Tue, 2011-08-16 at 12:13 -0700, Happy Swinger wrote:
> I am new to mono, so please forgive the ignorance on a lot of basic stuff.
> (Lots of experience on .net though).
> How does mono load the assemblies ?
> When I run “mono foo.exe” where foo.exe is my test assembly that let’s
> say depends on system.data.dll, then examining the process address of
> mono.exe does not indicate that foo.exe and system.data.dll are
> loaded. Internally the assemblies are of course loaded, as I can
> enumerate the instances of loaded assemblies via reflection.
> It looks to me mono does not use the normal window’s dll loading
> mechanism to achieve this, it probably reads the assemblies files
> directly in order to read the IL and  metadata. 
> Are there any tools that I can use to list the loaded assemblies of a
> running mono app ? (assuming that the app is written by someone else,
> I don’t have the luxury to edit it).

There is a tool called monodis which might help you. `monodis
--asemblyref foo.exe` will list the DLLs that the assembly says it


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20110817/6bfabbbb/attachment-0001.bin 

More information about the Mono-devel-list mailing list