Example #1
0
 private void BuildVersion(string path)
 {
     FileVersionInfo fileVersion = FileVersionInfo.GetVersionInfo(path);
     var a = new Version(fileVersion.FileVersion);
     var b = new Version(fileVersion.ProductVersion);
     latest.Version = a.HigherThan(b) ? a.ToString() : b.ToString();
     settings[info.Name]["Version"] = latest.Version;
     settings.Save(Default.Name);
 }