public class BuildVersion
{
    public GitVersion GitVersion { get; private set; }
    public string Version { get; private set; }
    public string Milestone { get; private set; }
    public string SemVersion { get; private set; }
    public string GemVersion { get; private set; }
    public string VsixVersion { get; private set; }

    public static BuildVersion Calculate(ICakeContext context, BuildParameters parameters, GitVersion gitVersion)
    {
        var version = gitVersion.MajorMinorPatch;
        var semVersion = gitVersion.LegacySemVer;
        var vsixVersion = gitVersion.MajorMinorPatch;

        if (!string.IsNullOrWhiteSpace(gitVersion.BuildMetaData)) {
            semVersion += "." + gitVersion.BuildMetaData;
            vsixVersion += "." + DateTime.UtcNow.ToString("yyMMddHH");
        }

        return new BuildVersion
        {
            GitVersion = gitVersion,
            Milestone  = version,
            Version    = version,
            SemVersion = semVersion,
            GemVersion = semVersion.Replace("-", "."),
            VsixVersion = vsixVersion,
        };
    }
}

public class BuildVersion
{
    public GitVersion GitVersion { get; private set; }
    public string Version { get; private set; }
    public string Milestone { get; private set; }
    public string SemVersion { get; private set; }
    public string GemVersion { get; private set; }
    public string VsixVersion { get; private set; }

    public static BuildVersion Calculate(ICakeContext context, BuildParameters parameters, GitVersion gitVersion)
    {
        var version = gitVersion.MajorMinorPatch;
        var semVersion = gitVersion.LegacySemVer;
        var vsixVersion = gitVersion.MajorMinorPatch;

        if (!string.IsNullOrWhiteSpace(gitVersion.BuildMetaData)) {
            semVersion += "-" + gitVersion.BuildMetaData;
            vsixVersion += "." + DateTime.UtcNow.ToString("yyMMddHH");
        }

        return new BuildVersion
        {
            GitVersion = gitVersion,
            Milestone  = version,
            Version    = version,
            SemVersion = semVersion,
            GemVersion = semVersion.Replace("-", "."),
            VsixVersion = vsixVersion,
        };
    }
}

Revert "Use dot instead of dash to separate build metadata"
Revert "Use dot instead of dash to separate build metadata"

This reverts commit 9567abb6ce15b29cc59ab36c0172d31aa9c661fe.
