[英]Get the data from the “Version” Tab in Dll properties with c# code?
I want to get the FileVersion (or ProductVersion) and the Comments fields which are in the "Version" tab of a dll using a c# code.我想使用 c# 代码获取 dll 的“版本”选项卡中的 FileVersion(或 ProductVersion)和注释字段。
I tried to use the Assembly class, but didn't find the data I need.我尝试使用程序集 class,但没有找到我需要的数据。
Thanks in Advance.提前致谢。
That's because the Assembly only knows the AssemblyVersion.那是因为 Assembly 只知道 AssemblyVersion。 To get File information, you need to look at the file properties using FileVersionInfo .
要获取文件信息,您需要使用FileVersionInfo查看文件属性。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.