AssemblyInfo 属性如何映射到 Win32 VERSIONINFO?
当您查看包含 VERSIONINFO 资源的二进制文件的属性时,Windows 会添加一个“版本”选项卡,用于显示该信息。
是否有哪些 .NET 程序集属性映射到哪些 VERSIONINFO 字段的列表,以便我们可以轻松地为 .NET 程序集控制这些属性?
When you view the properties for a binary file that contains a VERSIONINFO resource, Windows adds a "Version" tab, which displays that information.
Is there a list of which .NET assembly attributes map to which VERSIONINFO fields, so we can control these easily for our .NET assemblies?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
关于“固定信息”:
PRODUCTVERSION 和 FILEVERSION 分别从
[AssemblyInformationalVersion]
和[AssemblyFileVersion]
设置。FILEOS、FILETYPE 最有可能由编译器设置。
关于Var文件信息
[AssemblyCulture]
映射到“翻译”(我猜!)关于 字符串文件信息
[AssemblyCompany]
映射到“CompanyName”[AssemblyDescription]
映射到“注释”[AssemblyFileVersion]
映射到“FileVersion”[AssemblyTitle]
映射到“FileDescription”[AssemblyInformationalVersion]
映射到“ProductVersion”[AssemblyProduct]
映射到“ProductName”[AssemblyCopyright]
映射到“LegalCopyright”我认为“InternalName”和“OriginalFile”分别设置为 DLL 或 EXE 的名称。
Concerning the "fixed Info":
PRODUCTVERSION and FILEVERSION are set from
[AssemblyInformationalVersion]
and[AssemblyFileVersion]
respectively.FILEOS, FILETYPE are most likely set by the compiler.
Concerning the Var File Info
[AssemblyCulture]
maps to "Translation" (I guess!)Concerning the String File Info
[AssemblyCompany]
maps to "CompanyName"[AssemblyDescription]
maps to "Comments"[AssemblyFileVersion]
maps to "FileVersion"[AssemblyTitle]
maps to "FileDescription"[AssemblyInformationalVersion]
maps to "ProductVersion"[AssemblyProduct]
maps to "ProductName"[AssemblyCopyright]
maps to "LegalCopyright"I think "InternalName" and "OriginalFile" are set to the name of the DLL or EXE, respectively.
[AssemblyFileVersion]
我相信属性(以及其他)可以做到这一点 - 例如:您应该能够在 IDE 生成的默认
AssemblyInfo.cs
文件中找到此设置; 如果没有,请自行声明(如上所述)。您可能还想总体查看项目属性中的“程序集信息...”对话框,该对话框提供对此和其他信息的访问。
The
[AssemblyFileVersion]
attribute (among others) does this, I believe - for example:You should be able to find this setting in the default
AssemblyInfo.cs
file generated by the IDE; if not, declare it yourself (as above).You might also want to look generally at the "Assembly Information..." dialog in project properties, which provides access to this and others.