The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

How to: Wrap Multiple Versions of Type Libraries 

Optionally, you can wrap more than one version of a type library. For example, you can indicate that a primary interop assembly supports type library versions 1.0 and 1.1.

To wrap multiple versions of a type library

  1. Import a type library file:

    tlbimp LibUtil.tlb /primary /keyfile:CompanyA.snk /out:LibUtil.dll
  2. Create a text file from the imported assembly by using the MSIL Disassembler (Ildasm.exe):

    ildasm LibUtil.dll /
  3. Using a text editor, insert a second PrimaryInteropAssemblyAttribute attribute below the attribute added by Tlbimp.exe. Include the major and minor version numbers that represent the second type library version.

  4. Generate and sign a new assembly from the modified text file by using the MSIL Assembler (Ilasm.exe):

    ilasm /dll /key:CompanyA.snk

See Also

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft