---
title: ILAsm
slug: ilasm
qid: Q5971744
snapshot: ilasm-677381-fce66b02f63aac78
content_hash: fce66b02f63aac7824b793b82e4b82adf7430a7f50251f21d3368ada627f8f0e
license: CC BY-SA 4.0
source: https://en.wikipedia.org/w/index.php?oldid=1330146230
tags: [23118434, 23468805, 23603337, 27942935, 28698396, 38871940]
---

# ILAsm

> [!note] Provenance
> Snapshot `ilasm-677381-fce66b02f63aac78` · content root `fce66b02f63aac78…`
> Derived from <https://en.wikipedia.org/w/index.php?oldid=1330146230> · Licensed CC BY-SA 4.0

ILAsm (IL Assembler) generates a portable executable (PE) file from a text representation of Common Intermediate Language (CIL) code. It is not to be confused with NGEN (Native Image Generator), which compiles Common Intermediate Language code into native code as a .NET assembly is deployed. ILAsm is commonly used in low‑level .NET development scenarios, such as debugging, testing, or learning the inner workings of the Common Language Runtime. It allows developers to inspect and manipulate the intermediate language code directly, which can be useful for performance tuning, manual optimization, or injecting custom metadata. ILAsm supports generating both console applications and class libraries, allowing developers to specify metadata, define assembly references, and set entry points for managed code. It can also produce debug information compatible with the Visual Studio debugger, which enables step‑through debugging at the IL level. These features make ILAsm a valuable tool for learning, testing compiler output, or performing low‑level modifications to .NET assemblies.

ILAsm (IL Assembler) generates a portable executable (PE) file from a text representation of Common Intermediate Language (CIL) code. It is not to be confused with NGEN (Native Image Generator), which compiles Common Intermediate Language code into native code as a .NET assembly is deployed. ILAsm is commonly used in low‑level .NET development scenarios, such as debugging, testing, or learning the inner workings of the Common Language Runtime. It allows developers to inspect and manipulate the intermediate language code directly, which can be useful for performance tuning, manual optimization, or injecting custom metadata. ILAsm supports generating both console applications and class libraries, allowing developers to specify metadata, define assembly references, and set entry points for managed code. It can also produce debug information compatible with the Visual Studio debugger, which enables step‑through debugging at the IL level. These features make ILAsm a valuable tool for learning, testing compiler output, or performing low‑level modifications to .NET assemblies. ==References== Ilasm.exe (MSIL Assembler) on MSDN Ngen.exe (Native Image Generator) on MSDN
