Exemple #1
0
    public static VersionCell GetVersionCode()
    {
        VersionCell vc = new VersionCell();

        vc.CalculateVersion(VersionTool.packageVersion);
        return(vc);
    }
Exemple #2
0
 public void InitVersionData()
 {
     if (File.Exists(PathTool.VersionFilePath))
     {
         string tmp         = File.ReadAllText(PathTool.VersionFilePath);
         string fileVersion = tmp;
         currentVersion = fileVersion;
     }
     else
     {
         currentVersion = packageVersion;
         FileUtils.WriteAllText(PathTool.VersionFilePath, currentVersion);
     }
     currentVersionCell = new VersionCell();
     currentVersionCell.CalculateVersion(currentVersion);
 }