Respond to PR feedback and fix CommitCount not being padded with zeros.
This commit is contained in:
parent
aff23d00f4
commit
bf172df39b
2 changed files with 3 additions and 9 deletions
|
@ -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)" />
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue