Search notes:

TlbImp.exe

.NET Framework Type Library to Assembly Converter
TlbImp stands for Type Library Importer.

Usage

TlbImp TypeLibName [Options]

Options

/out:FileName File name of assembly to be produced
/namespace:Namespace Namespace of the assembly to be produced
/asmversion:Version Version number of the assembly to be produced
/reference:FileName File name of assembly to use to resolve references
/tlbreference:FileName File name of typelib to use to resolve references
/publickey:FileName File containing strong name public key
/keyfile:FileName File containing strong name key pair
/keycontainer:FileName Key container holding strong name key pair
/delaysign Force strong name delay signing
/product:Product The name of the product with which this assembly is distributed
/productversion:Version The version of the product with which this assembly is distributed
/company:Company The name of the company that produced this assembly
/copyright:Copyright Describes all copyright notices, trademarks, and registered trademarks that apply to this assembly
/trademark:Trademark Describes all trademarks and registered trademarks that apply to this assembly
/unsafe Produce interfaces without runtime security checks
/noclassmembers Prevents TlbImp from adding members to classes
/nologo Prevents TlbImp from displaying logo
/silent Suppresses all output except for errors
/silence:WarningNumber Suppresses output for the given warning (Can not be used with /silent)
/verbose Displays extra information
/primary Produce a primary interop assembly
/sysarray Import SAFEARRAY as System.Array
/machine:MachineType Create an assembly for the specified machine type
/transform:TransformName Perform the specified transformation
/strictref Only use assemblies specified using /reference and registered PIAs
/strictref:nopia Only use assemblies specified using /reference and ignore PIAs
/VariantBoolFieldToBool Convert VARIANT_BOOL field in structures to bool.
/Legacy35 Use legacy TlbImp 3.5 behavior.
/? or /help Display this usage message

Creating a Primary Interop Assembly (PIA)

With TlbImp, a PIA can be created from a type library like so:
TlbImp xyz.tlb /primary /keyfile:tq84.snk                         /out:xyz.dll
TlbImp xyz.tlb /primary /keyfile:tq84.snk /reference:someDeps.dll /out:xyz.dll

See also

System.Runtime.InteropServices.TypeLibConverter.
TlbExp.exe

Index