NAnt SDK Documentation - v0.92 |

# LoadTasksTask Class

Loads tasks form a given assembly or all assemblies in a given directory or FileSet.

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

System.Object
NAnt.Core.Element
NAnt.Core.Task
NAnt.Core.Tasks.LoadTasksTask

[Visual Basic]
<TaskName(Name:="loadtasks")>
Public Class LoadTasksTask
Inherits Task
[C#]
[TaskName(Name="loadtasks")]
public class LoadTasksTask : Task

#### 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.

#### Example

Load tasks from a single assembly.

    <loadtasks assembly="c:foo\NAnt.Contrib.Tasks.dll" />

Scan a single directory for task assemblies.

    <loadtasks path="c:\foo" />

Use a TaskFileSet containing both a directory and an assembly.

     <loadtasks>
        <fileset>
            <include name="C:\cvs\NAntContrib\build" />
            <include name="C:\cvs\NAntContrib\build\NAnt.Contrib.Tasks.dll" />
        </fileset>
    </loadtasks>

#### Requirements

Namespace: NAnt.Core.Tasks

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

#### See Also

LoadTasksTask Members | NAnt.Core.Tasks Namespace