From 0d55878a458cd19f9ebc622756586f0bda760d5a Mon Sep 17 00:00:00 2001 From: Andrew Stanton-Nurse Date: Tue, 16 Feb 2016 14:02:50 -0800 Subject: [PATCH] fix version number padding --- scripts/dotnet-cli-build/Utils/BuildVersion.cs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/scripts/dotnet-cli-build/Utils/BuildVersion.cs b/scripts/dotnet-cli-build/Utils/BuildVersion.cs index c03b48bd3..df2b32c34 100644 --- a/scripts/dotnet-cli-build/Utils/BuildVersion.cs +++ b/scripts/dotnet-cli-build/Utils/BuildVersion.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; - -namespace Microsoft.DotNet.Cli.Build +namespace Microsoft.DotNet.Cli.Build { public class BuildVersion { @@ -14,8 +9,8 @@ namespace Microsoft.DotNet.Cli.Build public string CommitCountString => CommitCount.ToString("000000"); public string ReleaseSuffix { get; set; } - public string SimpleVersion => $"{Major}.{Minor}.{Patch}.{CommitCount}"; - public string VersionSuffix => $"{ReleaseSuffix}-{CommitCount}"; + public string SimpleVersion => $"{Major}.{Minor}.{Patch}.{CommitCountString}"; + public string VersionSuffix => $"{ReleaseSuffix}-{CommitCountString}"; public string NuGetVersion => $"{Major}.{Minor}.{Patch}-{VersionSuffix}"; public string GenerateMsiVersion()