获取程序文件的版本信息
//获得运行时的Assembly的版本信息
public static string GetAssemblyVersion()
{
Assembly myAssembly =Assembly.GetExecutingAssembly();
FileVersionInfo myFileVersion =FileVersionInfo.GetVersionInfo(myAssembly.Location);
return string.Format("{0}.{1}.{2}",myFileVersion.FileMajorPart, myFileVersion.FileMinorPart, myFileVersion.FileBuildPart);