Merge pull request #1443 from dotnet/anurse/fix-version-numbers

fix version number padding
This commit is contained in:
Andrew Stanton-Nurse 2016-02-16 15:58:00 -08:00
commit c4010e6aa5

View file

@ -1,9 +1,4 @@
using System; namespace Microsoft.DotNet.Cli.Build
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Microsoft.DotNet.Cli.Build
{ {
public class BuildVersion public class BuildVersion
{ {
@ -14,8 +9,8 @@ namespace Microsoft.DotNet.Cli.Build
public string CommitCountString => CommitCount.ToString("000000"); public string CommitCountString => CommitCount.ToString("000000");
public string ReleaseSuffix { get; set; } public string ReleaseSuffix { get; set; }
public string SimpleVersion => $"{Major}.{Minor}.{Patch}.{CommitCount}"; public string SimpleVersion => $"{Major}.{Minor}.{Patch}.{CommitCountString}";
public string VersionSuffix => $"{ReleaseSuffix}-{CommitCount}"; public string VersionSuffix => $"{ReleaseSuffix}-{CommitCountString}";
public string NuGetVersion => $"{Major}.{Minor}.{Patch}-{VersionSuffix}"; public string NuGetVersion => $"{Major}.{Minor}.{Patch}-{VersionSuffix}";
public string GenerateMsiVersion() public string GenerateMsiVersion()