Inside Microsoft .NET IL Assembler

Appendix D

IL Assembler and Disassembler Command-Line Options

IL Assembler

The command-line structure of IL Assembler is as follows:

ilasm [<options>] <sourcefile> [<options>][<sourcefile>*]

The default source file extension is IL. Multiple source files are parsed in the order of their appearance on the command line. Because options do not need to appear in a prescribed order, options and names of source files can be intermixed. All options specified on the command line are pertinent to the entire set of source files.

All options are recognized by the first three characters following the option key, and all are case-insensitive. The option key can be a forward slash (/) or a hyphen (-). In options that specify parameters, the equality character (=) is interchangeable with the colon character (:). The following option notations are equivalent:

/OUTPUT=MyModule.dll

-OUTPUT:MyModule.dll

/out:MyModule.dll

-Outp:MyModule.dll

The following command-line options are defined for IL Assembler:

Категории