NAnt SDK Documentation - v0.92 |

# TlbExpTask Class

Exports a .NET assembly to a type library that can be used from unmanaged code (wraps Microsoft's `tlbexp.exe`).

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

System.Object
NAnt.Core.Element
NAnt.Core.Task
NAnt.Core.Tasks.ExternalProgramBase
NAnt.Win32.Tasks.TlbExpTask

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

See the Microsoft.NET Framework SDK documentation for details.

#### Example

Export `DotNetAssembly.dll` to `LegacyCOM.dll`.

    <tlbexp assembly="DotNetAssembly.dll" output="LegacyCOM.dll" />

#### Requirements

Namespace: NAnt.Win32.Tasks

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

#### See Also

TlbExpTask Members | NAnt.Win32.Tasks Namespace