NAnt SDK Documentation - v0.92 |

# AssemblyLinkerTask Class

Wraps `al.exe`, the assembly linker for the .NET Framework.

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

System.Object
NAnt.Core.Element
NAnt.Core.Task
NAnt.Core.Tasks.ExternalProgramBase
NAnt.DotNet.Tasks.AssemblyLinkerTask

[Visual Basic]
<ProgramLocation(LocationType:=LocationType.FrameworkDir), _ TaskName(Name:="al")>
Public Class AssemblyLinkerTask
Inherits ExternalProgramBase
[C#]
[ProgramLocation(LocationType=LocationType.FrameworkDir)]
[TaskName(Name="al")]
public class AssemblyLinkerTask : 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

All specified sources will be embedded using the `/embed` flag. Other source types are not supported.

#### Example

Create a library containing all icon files in the current directory.

    <al output="MyIcons.dll" target="lib">
        <sources>
            <include name="*.ico" />
        </sources>
    </al>

Create an executable assembly manifest from modules.

    <al output="Client.exe" target="exe" main="Program.Main">
        <modules>
            <include name="Client.netmodule" />
            <include name="Common.netmodule" />
        </modules>
    </al>

#### Requirements

Namespace: NAnt.DotNet.Tasks

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

#### See Also

AssemblyLinkerTask Members | NAnt.DotNet.Tasks Namespace