如何获取和修改EXE、DLL文件的版本、公司、描述等信息

来源:百度知道 编辑:UC知道 时间:2024/07/06 11:50:54
高手说下嘛!
最好有点VB.NET代码
谢谢了

'AssemblyTitle取得
Dim asmttl As System.Reflection.AssemblyTitleAttribute = _
CType(Attribute.GetCustomAttribute( _
System.Reflection.Assembly.GetExecutingAssembly(), _
GetType(System.Reflection.AssemblyTitleAttribute)), _
System.Reflection.AssemblyTitleAttribute)
Console.WriteLine(asmttl.Title)

'AssemblyDescription取得
Dim asmdc As System.Reflection.AssemblyDescriptionAttribute = _
CType(Attribute.GetCustomAttribute( _
System.Reflection.Assembly.GetExecutingAssembly(), _
GetType(System.Reflection.AssemblyDescriptionAttribute)), _
System.Reflection.AssemblyDescriptionAttribute)
Console.WriteLine(asmdc.Description)

'AssemblyCompany取得
Dim asmcmp As System.Reflection.AssemblyCompanyAttribute = _
CType(Attribute.GetCustomAttribute( _
System.Reflection.Assembly.GetExecutingAssembly(), _
GetType(Sy