Navigation:  Actions > Microsoft .NET > Import Type Library >

Import Type Library Action Import Tab

Previous pageReturn to chapter overviewNext page

This tab of the Import Type Library action specifies the general settings.


Type library filename: The name of any file that contains a COM type library (required).


Output filename: Specifies the name of the output file, assembly, and namespace in which to write the metadata definitions (optional). This option has no effect on the assembly's namespace if the type library specifies the Interface Definition Language (IDL) custom attribute that explicitly controls the assembly's namespace. If you do not specify this option, the action writes the metadata to a file with the same name as the actual type library defined within the input file and assigns it a .dll extension. If the output file is the same name as the input file, the tool generates an error to prevent overwriting the type library.


Assembly namespace: Specifies the namespace in which to produce the assembly (optional).


Version: Specifies the version number of the assembly to produce (optional). Specify in the format


Produce primary interop assembly: Produces a primary interop assembly for the specified type library. Information is added to the assembly indicating that the publisher of the type library produced the assembly. By specifying a primary interop assembly, you differentiate a publisher's assembly from any other assemblies that are created from the type library using Tlbimp.exe. You should only use this option if you are the publisher of the type library that you are importing. Note that you must sign a primary interop assembly with a strong name.


Produce interfaces without .NET security checks: Produces interfaces without .NET Framework security checks. Calling a method that is exposed in this way might pose a security risk. You should not use this option unless you are aware of the risks of exposing such code


Import a COM style SafeArray as a managed Array class: Specifies to the tool to import a COM style SafeArray as a managed System.Array Class type.