Ilasm Task

Assembles .NET Intermediate Language files. ilasm.exe must be on the execute path, unless another executable or the full path to that executable is specified in the executable parameter.

All parameters are optional: <il/> should suffice to produce a debug build of all *.il files. The option set is roughly compatible with the CSharp class; even though the command line options are only vaguely equivalent. [The low level commands take things like /OUT=file, csc wants /out:file ... /verbose is used some places; /quiet here in ildasm... etc.] It would be nice if someone made all the command line tools consistent (and not as brittle as the java cmdline tools).

The task is a directory based task, so attributes like includes="*.il" and excludes="broken.il" can be used to control the files pulled in. You can also use nested <src> filesets to refer to source.

Parameters

Attribute Description Type Requirement
debug set the debug flag on or off. boolean Optional
destfile Set the name of exe/library to create. File
extraoptions Any extra options which are not explicitly supported by this task. String
failonerror If true, fails if ilasm tool fails. boolean
keyfile the name of a file containing a private key. File
listing If true, produce a listing (off by default). boolean
outputfile Set the output file; identical to setDestFile File
resourcefile name of resource file to include. File
srcdir Set the source directory of the files to be compiled. File
verbose If true, enable verbose ILASM output. boolean

Parameters as nested elements

reference (org.apache.tools.ant.types.FileSet)

add a new reference fileset to the compilation

src (org.apache.tools.ant.types.FileSet)

add a new source directory to the compile