[阅读: 352] 2005-12-02 07:52:38
MetaInfo – Metadata Dump Utility
Intro:
Metainfo is a command-line tool that dumps the metadata for DLL's or EXE's from any .Net compiler and managed .obj files produced from the Visual C++.Net compiler with the /CLR switch. The software is written in C++, and uses the unmanaged metadata APIs to read the contents of the file. This sample provides full sources for the tool.
Note: this is the software that you can invoke from the ILDASM tool, using the /ADVANCED option, and clicking the View | MetaInfo path
Usage:
MetaInfo <filename>
MetaInfo /? lists the various command options available
Building:
Open a command window and cd to the MetaInfo directory (this may vary on the options you chose at install time, but typically would be at : C:\Program Files\Microsoft.NET\FrameworkSDK\Tool Developers Guide\Samples\MetaInfo
Type nmake
This example assumes you have a copy of Microsoft Visual C++, version 6 or later, installed on your machine, in order to build the sample.