Solved

About Assembly !

Posted on 2006-06-18
5
280 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
5 Comments
 
LVL 7

Expert Comment

by:pradeepsudharsan
Comment Utility
0
 
LVL 28

Accepted Solution

by:
iboutchkine earned 500 total points
Comment Utility
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
Comment Utility
I think you need to run the ILDASM.exe from the .NET Command Window, not the standard cmd window.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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 When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

744 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now