Type Library Exporter (tlbexp.exe)

Type library exporter and importer are the two tools necessary for COM interop. The exporter generates a type library for a .NET Framework assembly so that other COM components can interop with .NET components. The general syntax for tlbexp.exe is:

tlbexp AssemblyName [options]

The following table shows some of the common usages of tlbexp.exe :

Option

Description

/nologo

This option suppresses the logo of the tlbexp executable.

/out:filename

filename is the name of the type library file.

/silent

This option suppresses all messages from the tlbexp executable.

/verbose

This option displays extra information while converting the component.

/? or /help

This option displays the help information for the tool.

Get .Net Framework Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.