From 753a875d117d8cbc944056ad7d34246b4ee6f279 Mon Sep 17 00:00:00 2001 From: He Qian Wang Date: Wed, 3 Apr 2024 16:22:28 -0400 Subject: [PATCH] Add unique Id to version name --- Build.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Build.ps1 b/Build.ps1 index c10cec9..d4ec029 100644 --- a/Build.ps1 +++ b/Build.ps1 @@ -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 }