MSIL Disassembler (ildasm.exe)

This tool extracts the MSIL code from a PE file targeted for .NET Framework. The general syntax for this tool is:

Ildasm [options] PEFilename

The following table shows some of the common usages of the disassembler:

Option

Description

/linenum

This includes references to original source lines.

/out=filename

The output goes to a file instead of in a GUI dialog box.

/source

This shows original source lines as comments.

/text

The output goes in a console window.

/tokens

This shows metadata tokens as classes and members.

Get .Net Framework Essentials now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.