try { string currentVersion = System.Reflection.Assembly.GetCallingAssembly().GetName().Version.ToString(); FileVersionInfo myFI = FileVersionInfo.GetVersionInfo("FileName.exe"); currentVersion = myFI.FileVersion; } catch (Exception ex) { setDebugText("Error retrieving version number: " + ex.Message); }
FileVersionInfo myFI = FileVersionInfo.GetVersionInfo("FileName.exe"); currentVersion = myFI.FileVersion;
string versionNumber = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)