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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.