Respond to PR feedback and fix CommitCount not being padded with zeros.

This commit is contained in:
Eric Erhardt 2016-06-28 18:59:15 -05:00
parent aff23d00f4
commit bf172df39b
2 changed files with 3 additions and 9 deletions

View file

@ -103,12 +103,6 @@
<Target DependsOnTargets="Init" Name="RestorePackages">
<!-- Clean NuGet Temp Cache on Linux (seeing some issues on Linux) -->
<!-- TODO: do we still need this? Seems unnecessary -->
<RemoveDir
Condition=" '$(OSName)' != 'win' AND '$(OSName)' != 'osx' "
Directories="/tmp/NuGet" />
<DotNetRestore WorkingDirectory="$(RepoRoot)/src" ToolPath="$(DotNetPath)" />
<DotNetRestore WorkingDirectory="$(RepoRoot)/tools" ToolPath="$(DotNetPath)" />

View file

@ -22,7 +22,7 @@ namespace Microsoft.DotNet.Cli.Build
public string CommitHash { get; set; }
[Output]
public int CommitCount { get; set; }
public string CommitCount { get; set; }
[Output]
public string ReleaseSuffix { get; set; }
@ -68,7 +68,7 @@ namespace Microsoft.DotNet.Cli.Build
VersionMinor = buildVersion.Minor;
VersionPatch = buildVersion.Patch;
CommitHash = commitHash;
CommitCount = commitCount;
CommitCount = buildVersion.CommitCountString;
ReleaseSuffix = buildVersion.ReleaseSuffix;
VersionSuffix = buildVersion.VersionSuffix;
SimpleVersion = buildVersion.SimpleVersion;