Geeks With Blogs
Devin Rader's Blog I write the code...

Ever wanted to read an assemblies metadata without actually loading the assembly, either because it was not performant enough, or the assembly was missing a reference.

Here is a little utilitiy that I wrote that will enumerate through all of an assemblies references without loading any of the actual assemblies.  It uses the Unmanaged MetaData API to read the meta data.  We use it to help us debug manifest definition mismathc problems.

http://workspaces.gotdotnet.com/AssemblyMetaDataReader

Of course the ability to examine metadata without loading the assembly exists in the .NET 2.0 Framework

http://msdn2.microsoft.com/library/e2s44xz6.aspx

Posted on Friday, January 7, 2005 8:50 PM | Back to top


Comments on this post: Read assembly metadata without loading the assembly

# re: Read assembly metadata without loading the assembly
Requesting Gravatar...
Hi Devin,

Is it possible to ask for some information on how to use the metadata api? or maybe if it's not imposing too much to ask for your source code for the AssemblyMetaDataReader. We need a similar functionality for querying the types in an assembly without loading it and you would be a great help if you could point me in the right direction.

Thanks in advance and more power.

Left by Raist on Jun 19, 2007 10:13 PM

# re: Read assembly metadata without loading the assembly
Requesting Gravatar...
Hello Devin,

the link to the "AssemblyMetaDataReader" on dotdotnet.com doesn't work any more, and the content was obviosly not migrated to the new CodeGallery portal :( Could you please update the link or send me the binaries?

Tank you in advance.
Left by Alex on Sep 17, 2008 7:09 PM

# re: Read assembly metadata without loading the assembly
Requesting Gravatar...
please share the AssemblyMetaDataReader
Left by sandeep on Oct 09, 2008 11:26 PM

Your comment:
 (will show your gravatar)


Copyright © Devin Rader | Powered by: GeeksWithBlogs.net