Search code examples
.netinteropassembliestlbimpversioninfo

Can tlbimp.exe generate interop assemblies with customized version info?


The Microsoft Type Library Importer tool (tlbimp.exe) generate interop assemblies without some version info, i.e. no company, no copyright, no trademarks and number version always set to 1.0.0.0. Is it possible to get the tool to generate interop assemblies with customized version info?

This is loosely related with another question I have asked on SO: Modify the version info of a built .Net assembly


Solution

  • Yes. You linked to the page that describes how to do so:

    /asmversion: versionNumber
    

    Specifies the version number of the assembly to produce. Specify versionNumber in the format major.minor.build.revision.

    /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