public void IncrementVersionAndEnableSnapshot() { if (string.IsNullOrEmpty(Version)) // TODO: need refactoring { IsSnapshot = true; // version will be defaulted } else { string version = VersionOperations.ResetVersion(Version); version = version.ToSnapshot(); Version = VersionOperations.IncrementNumber(version, 2); // TODO: make it flexable } }
public void SwitchToRelease(string postfix = null) { string version = VersionOperations.ResetVersion(Version); Version = VersionOperations.AddPostfix(version, postfix); }