diff --git a/Build.ps1 b/Build.ps1 index d4ec029..7b4f05a 100644 --- a/Build.ps1 +++ b/Build.ps1 @@ -25,9 +25,9 @@ Process { Exec { & dotnet tool restore } # Let GitVersion compute the NuGet package version - $uniqueId = Get-Date -Format "yyyyMMddHHmmss" + $shortSHA = Exec { & git rev-parse --short HEAD } $gitVersion = Exec { & dotnet dotnet-gitversion /output json /showvariable SemVer } - $version = "$gitVersion.$uniqueId" + $version = "$gitVersion.$shortSHA" # Pack using NuGet.exe Exec { & nuget pack Workleap.DotNet.CodingStandards.nuspec -OutputDirectory $outputDir -Version $version -ForceEnglishOutput }