获取exe文件的版本号问题
string path = @"D:\Test\folder2\IPMSG.exe";
try
{
System.Diagnostics.FileVersionInfo file1 = System.Diagnostics.FileVersionInfo.GetVersionInfo(path);
FileVersions = file1.FileVersion;
}
catch(Exception e1)
{
FileVersions = "";
}
MessageBox.Show(FileVersions);
IPMSG.exe在属性里查看的版本号为2.0.6.0,
运行程序得到的是2.06
另外有的exe文件版本号就给完整的,有的就给不完整的,还有的把"."替换成了","
怎么回事?