diff --git a/build/Microsoft.DotNet.Cli.Prepare.targets b/build/Microsoft.DotNet.Cli.Prepare.targets index 32321e43d..b53cfcd3c 100644 --- a/build/Microsoft.DotNet.Cli.Prepare.targets +++ b/build/Microsoft.DotNet.Cli.Prepare.targets @@ -103,15 +103,9 @@ - - - - - + diff --git a/build_projects/dotnet-cli-build/GenerateBuildVersionInfo.cs b/build_projects/dotnet-cli-build/GenerateBuildVersionInfo.cs index 1328998aa..2be4c2a5c 100644 --- a/build_projects/dotnet-cli-build/GenerateBuildVersionInfo.cs +++ b/build_projects/dotnet-cli-build/GenerateBuildVersionInfo.cs @@ -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;