Esempio n. 1
0
        public static Version Next(VersionType versionType)
        {
            var previousVersions = VersionReader.PreviousVersions();

            return(NextVersion(previousVersions.DefaultIfEmpty(VersionInfo.Default).Last(), versionType));
        }
Esempio n. 2
0
 public void Run(Version version)
 {
     var nextVersion = new VersionInfo(version);
     SaveVersions(VersionReader.PreviousVersions().Concat(new[] { nextVersion }));
     AssemblyInfoUpdater.UpdateAll(nextVersion.VersionString());
 }