Solved

About Assembly !

Posted on 2006-06-18
5
291 Views
Last Modified: 2010-04-23

Hi,

I know that every assembly consists of the following information:

1. MSIL
2. Resources
3. Meta-data

Can you please let me know, how can i see this information for an assembly ? Let us say my assembly is a EXE created by windows application.

Thanks,
Kishore
0
Comment
Question by:kishore_peddi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 28

Accepted Solution

by:
iboutchkine earned 500 total points
ID: 16934142
Assemblies contain 4 elements:
1.Exe file
2.MSIL - MS intermediate language. MSIL code is your program code compiled into language that the common
            language runtime understands
3.Metadata - information about types, methods and other elements defined and referenced in the code
4.Manifest - includes name and version info, list of files in assembly, security info etc

The metadata that is stored in the components is binary, and contains all types, members,
and references in that file or assembly. The metadata is compiled into the PE
file, but when the file is used at runtime, the metadata is moved into memory so that
it can be accessed more quickly.

Metadata included into each managed module completely describes each type defined in the module:
name, public memebers, signature of each distinct method.
Metadata also records the information about every type that this module uses.

Metadata is a superset of type libraries used under COM with the important differrence thst you
cannot  separate IL from its metadata.
Metadata makes  a managed module self describing.

Manifest (Assembly Meta Data)
The manifest makes an assembly self describing and can be viewed with the IL Disassembler - Intermediate
Language Disassembler. The IL Disassembler (Ildasm.exe) is included in the .NET Framework SDK and runs
from a command line.

0
 
LVL 14

Expert Comment

by:ptakja
ID: 16939480
I think you need to run the ILDASM.exe from the .NET Command Window, not the standard cmd window.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question