// ensures that the git version exists
 private static void EnsureGitVersion()
 {
     if (gitVersion == null)
     {
         gitVersion = new GitVersionCalculator();
     }
 }
        /// <summary>
        /// Replaces all registered placeholders in the given version string
        /// </summary>
        /// <param name="versionString">The version string that contains placeholders</param>
        /// <returns>The version string where placeholders are replaced by the calculated values</returns>
        public string ReplacePlaceholders(string versionString)
        {
            GitVersionCalculator gitVersion = new GitVersionCalculator();

            versionString = ReplaceGitVersionPlaceholder(versionString);
            versionString = ReplaceBranchPlaceholder(versionString);
            versionString = ReplaceAppVersionPlaceholder(versionString);

            return(versionString);
        }