From c918da2a04d4b61ca6372f3618b37d219ae316d9 Mon Sep 17 00:00:00 2001 From: Laszlo Schreck Date: Fri, 30 Jun 2017 13:10:43 +0900 Subject: [PATCH] Fix the tag -> version conversion in build script --- build/build.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/build.ps1 b/build/build.ps1 index 980d626..fc36019 100644 --- a/build/build.ps1 +++ b/build/build.ps1 @@ -24,7 +24,7 @@ $propsVersion = $props.SelectSingleNode("//PropertyGroup/Version").InnerText if ($propsVersion.Contains("-")) { $propsVersion = $propsVersion.Substring(0, $propsVersion.IndexOf('-')) } if ($env:APPVEYOR_REPO_TAG -eq 'true') { - $version = $env:APPVEYOR_REPO_TAG_NAME.Replace("release", "").Replace("release/v", "") + $version = $env:APPVEYOR_REPO_TAG_NAME.Replace("release/v", "").Replace("release", "") Write-Host "$env:APPVEYOR_REPO_TAG_NAME" -ForegroundColor Cyan -NoNewline } else { $buildNo = $env:APPVEYOR_BUILD_NUMBER @@ -71,4 +71,4 @@ dotnet xunit Pop-Location -Write-Host "Build script completed." -ForegroundColor Cyan \ No newline at end of file +Write-Host "Build script completed." -ForegroundColor Cyan