Пример #1
0
 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
     }
 }
Пример #2
0
        public void SwitchToRelease(string postfix = null)
        {
            string version = VersionOperations.ResetVersion(Version);

            Version = VersionOperations.AddPostfix(version, postfix);
        }