---
name: "ilasm"
section: "1"
platform: "linux"
package: "mono"
version: "6.12.0.206-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/ilasm"
---

# ilasm(1)

Mono IL assembler

## NAME

ilasm, ilasm2 - Mono IL assembler

## SYNOPSIS

**ilasm** \[option\] \[source-files\]

**ilasm2** \[option\] \[source-files\]

## DESCRIPTION

ilasm is the Mono ILAsm assembler.  You can pass one or more options to drive the compiler, and a set of source files.

Use *ilasm* to generate 1.0 assemblies and use *ilasm2* to assemble programs that use the 2.0 features (generics).

The Mono ILAsm assembler accepts options starting with / or - for mosted  options.

The Mono ILAsm assembler generates images (.exe and .dll files) that contain CIL byte code that can be executed by any system that implemented a Common Language Infrastructure virtual machine.

## OPTIONS

- **/output:\<file\_name\>**

  Specify the output file name.

- **/exe**

  Generate an exe

- **/dll**

  Generate a library

- **/scan\_only**

  Just scan the IL code and display tokens.

- **/show\_tokens**

  Show tokens as they are parsed.

- **/show\_method\_def**

  Display method information when a method is defined.

- **/show\_method\_ref**

  Display method information when a method is referenced

- **/key:KEYFILE**

  Strongname (sign) the output assembly using the key pair present in  the specified strong name key file (snk). A full key pair is required (i.e. delay signing is done using a .publickey directive in the sources).

- **/key:@CONTAINER**

  Strongname (sign) the output assembly using the key pair present in  the specified container.

- **--about**

  Display information about ilasm

- **--version**

  Display ilasm version

## SEE ALSO

**[mono(1)](/mono/1.md),**[mcs(1)](/mcs/1.md)

## COPYRIGHT

Copyright (C) 2004, 2007 Novell, Inc (http://www.novell.com)

## MAILING LISTS

Visit http://lists.ximian.com/mailman/listinfo/mono-devel-list for details.

## WEB SITE

Visit: http://www.mono-project.com for details
