Example #1
0
        public ProjectPatcher(Project project, string fullVersion)
        {
            this.project     = project;
            this.fullVersion = fullVersion;
            SemanticVersion ver = SemanticVersion.Parse(fullVersion.Replace("$CONF$", "").Replace("$DATETIME$", ""));

            shortVersion = ver.GetNormalizedVersion();

            int y  = DateTime.UtcNow.Year;
            int md = DateTime.UtcNow.Month * 100 + DateTime.UtcNow.Day;
            int hm = DateTime.UtcNow.Hour * 100 + DateTime.UtcNow.Minute;
            int c  = y ^ md ^ hm;

            fileVersion = new Version(y, md, hm, c);
        }