Skip to content

Commit 15c9f57

Browse files
committed
build.ps1 - Set assemblyversion to same as version when appveyor tagged build (release build)
1 parent 1542fa3 commit 15c9f57

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ if (Test-Path Env:\APPVEYOR_BUILD_VERSION)
3636
if ($env:APPVEYOR_REPO_TAG -eq "True")
3737
{
3838
$Version = "$env:APPVEYOR_REPO_TAG_NAME".Substring(1) # trim leading "v"
39-
Write-Diagnostic "Setting version based on tag to $Version"
39+
$AssemblyVersion = $Version
40+
Write-Diagnostic "Setting Version based on tag to $Version"
41+
Write-Diagnostic "Setting AssemblyVersion based on tag to $AssemblyVersion"
4042
}
4143

4244
# https://github.com/jbake/Powershell_scripts/blob/master/Invoke-BatchFile.ps1

0 commit comments

Comments
 (0)