get Publish Revision other .exe c#



如何通过其他程序验证.exe文件的Publish Revision版本?我这样做了,但结果不正确:

var b = path_exe; 
System.Version version = System.Reflection.Assembly.LoadFile(b).getName()Version;

您可以使用以下

FileVersionInfo fvi = FileVersionInfo.GetVersionInfo("path");
MessageBox.Show(fvi.FileVersion);
MessageBox.Show(fvi.ProductVersion);

最新更新