private static string MakeNewVersion(List<VersionUpdate> newVersionRequests, VersionData currentVersion) { var match = newVersionRequests.FirstOrDefault(v => v.VersionKey == currentVersion.Description); if (match == null) return currentVersion.Original; newVersionRequests.Remove(match); return match.Version; }
public VersionUpdate(string incrementName, VersionData version) { VersionKey = incrementName; Version = string.Format("{0}.{1}.{2}.{3}", version.Major, version.Minor, version.Build, version.Revision); }