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