DLL 版本号的获取

来源:互联网 发布:滤波反投影算法matlab 编辑:程序博客网 时间:2024/05/18 01:02
 方法一:
string   version   =   System.Reflection.Assembly.LoadFrom(strFilePath).GetName().Version.ToString();
方法二:
Version   ApplicationVersion   =   new   Version(Application.ProductVersion);
string   version   =   ApplicationVersion.Major.ToString();//获取主版本号                                    
方法三:                          
System.Diagnostics.FileVersionInfo   info   =System.Diagnostics.FileVersionInfo.GetVersionInfo(strFilePath);      
string   version   =   info.FileVersion;
原创粉丝点击