NAnt SDK Documentation - v0.92 |

# IldasmTask Class

Disassembles any portable executable (PE) file that contains intermediate language (IL) code.

For a list of all members of this type, see IldasmTask Members.

System.Object
NAnt.Core.Element
NAnt.Core.Task
NAnt.Core.Tasks.ExternalProgramBase
NAnt.MSNet.Tasks.IldasmTask

[Visual Basic]
<ProgramLocation(LocationType:=LocationType.FrameworkSdkDir), _ TaskName(Name:="ildasm")>
Public Class IldasmTask
Inherits ExternalProgramBase
[C#]
[ProgramLocation(LocationType=LocationType.FrameworkSdkDir)]
[TaskName(Name="ildasm")]
public class IldasmTask : ExternalProgramBase

#### Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

#### Remarks

Files are only disassembled if the input file is newer than the output file, or if the output file does not exist. However, you can explicitly force files to be disassembled with the ForceRebuild attribute.

A FileSet can be used to select files to disassemble. To use a FileSet, the ToDirectory attribute must be set. The file name of the output file will be equal to the file name of the input file, but with extension ".il".

#### Example

Disassembles `helloworld.exe` to `helloworld.il`.

    <ildasm input="helloworld.exe" output="helloworld.il" />

Disassembles a set of PE files into the specified directory.

    <ildasm todir=".">
        <assemblies>
            <include name="*.exe" />
            <include name="*.dll" />
        </assemblies>
    </ildasm>

#### Requirements

Namespace: NAnt.MSNet.Tasks

Assembly: NAnt.MSNetTasks (in NAnt.MSNetTasks.dll)

#### See Also

IldasmTask Members | NAnt.MSNet.Tasks Namespace