Skip to Main Content
C# in a Nutshell
book

C# in a Nutshell

by Ben Albahari, Ted Neward, Peter Drayton
March 2002
Intermediate to advanced content levelIntermediate to advanced
864 pages
31h 8m
English
O'Reilly Media, Inc.
Content preview from C# in a Nutshell

Name

ILasm.exe — MSIL Assembler

Synopsis

ilasm [options] file1 [[options] file2 ...]

Description

Creates MSIL modules and assemblies directly from an MSIL textual representation. See IL Debugging elsewhere in this chapter for an example that uses ILasm.exe.

Options

/?

Displays usage information and exits.

/ali[gnment]= int

Specifies a value for File Alignment in the NT Optional Header. Overrides the MSIL .alignment directive.

/bas[e]= int

Specifies a value for ImageBase in the NT Optional Header. Overrides the MSIL .imagebase directive.

/clo[ck]

Reports on how long the assembly takes.

/deb[ug]

Includes debugging information in the output file.

/dll

Assembles source file to a DLL.

/exe

Assembles source file to an executable file (the default).

/fla[gs]= int

Sets ImageFlags in the CLR header. Overrides the MSIL .corflags directive.

/key: file

Specifies the name of the file that contains the key or key-pair with which to sign the assembly. You can generate a key file with the sn utility.

/key:@ text

Specifies a key container that contains the key-pair with which to sign the assembly. You can add keys to a container using sn -i.

/lis[ting]

Emits a listing to the console as the file is assembled.

/nol[ogo]

Suppresses display of the banner and copyright messages.

/out[put]: file

Specifies the output filename.

/qui[et]

Suppresses display of assembly progress to console.

/res[ource]: file

Specifies a Win32 resource (.res) file to include in the generated assembly.

/sub[system]= int

Specifies ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C# 8.0 in a Nutshell

C# 8.0 in a Nutshell

Joseph Albahari, Eric Johannsen
C# 10 in a Nutshell

C# 10 in a Nutshell

Joseph Albahari
C# in a Nutshell, Second Edition

C# in a Nutshell, Second Edition

Peter Drayton, Ben Albahari, Ted Neward
Code like a Pro in C#

Code like a Pro in C#

Jort Rodenburg

Publisher Resources

ISBN: 0596001819Catalog PageErrata