使用自定义程序集信息将TLB文件转换为程序集

时间:2009-09-03 14:01:52

标签: .net tlbimp

我正在使用tlbimp.exe从TLB文件生成程序集。我知道我可以使用“asmversion”命令行开关来设置自定义版本号,但是如何设置其他信息呢?我想设置“产品名称”和“公司”等字段,但我没有办法做到这一点。可以用tlbimp或任何其他工具完成吗?

1 个答案:

答案 0 :(得分:1)

您可以使用tlbimp.exe来插入此信息,至少在最新的(测试版)Visual Studio 2010中。(我无法确定这些是否是新选项。)

C:\Temp>tlbimp /?
Microsoft (R) .NET Framework Type Library to Assembly Converter 4.0.20624.1
Copyright (C) Microsoft Corporation.  All rights reserved.

Syntax: TlbImp TypeLibName [Options]
Options:

    ...
    /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
    ...