Skip to content

Commit

Permalink
Add unique Id to version name
Browse files Browse the repository at this point in the history
  • Loading branch information
heqianwang committed Apr 3, 2024
1 parent 2c10dfa commit 753a875
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ Process {

# Let GitVersion compute the NuGet package version
$uniqueId = Get-Date -Format "yyyyMMddHHmmss"
$version = Exec { & dotnet dotnet-gitversion /output json /showvariable SemVer } + ".$uniqueId"
$gitVersion = Exec { & dotnet dotnet-gitversion /output json /showvariable SemVer }
$version = "$gitVersion.$uniqueId"

# Pack using NuGet.exe
Exec { & nuget pack Workleap.DotNet.CodingStandards.nuspec -OutputDirectory $outputDir -Version $version -ForceEnglishOutput }
Expand Down

0 comments on commit 753a875

Please sign in to comment.