将 TLB 文件转换为具有自定义程序集信息的程序集

发布于 2024-08-03 13:58:07 字数 141 浏览 4 评论 0原文

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

I am using tlbimp.exe to generate an assembly from a TLB file. I know that I can use the "asmversion" command line switch to set a custom version number, but how do I set the other information? I would like to set the fields like "Product Name" and "Company", but I don't see a way to do this. Can it be done with tlbimp, or any other tools?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

荒芜了季节 2024-08-10 13:58:07

您可以使用 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
    ...

You can use tlbimp.exe to insert this information, at least in the latest (beta) version of Visual Studio 2010. (I can't quite tell if these are new options.)

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
    ...
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文