Skip to content

Commit a2cd207

Browse files
committed
use tag name as version if present
1 parent a06f846 commit a2cd207

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project ToolsVersion="15.0">
22

33
<PropertyGroup>
4-
<Version Condition=" '$(Version)' == '' ">0.37.0$(VersionSuffix)</Version>
4+
<Version Condition=" '$(Version)' == '' ">0.38.0$(VersionSuffix)</Version>
55
</PropertyGroup>
66

77
<PropertyGroup>

appveyor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ before_build:
77
$versionSuffixPR = "-PR$($env:APPVEYOR_PULL_REQUEST_NUMBER)-$buildId";
88
$branchName = "$env:APPVEYOR_REPO_BRANCH".Replace("_","");
99
$versionSuffixBRANCH = "-$branchName-$buildId";
10+
$env:Version = if ("$env:APPVEYOR_REPO_TAG" -eq "true") { "$env:APPVEYOR_REPO_TAG_NAME".trimstart("v") } else { "" }
1011
$env:VersionSuffix = if ("$env:APPVEYOR_REPO_TAG" -eq "true") { "" } else { if ("$env:APPVEYOR_PULL_REQUEST_NUMBER") { $versionSuffixPR } else { $versionSuffixBRANCH } };
1112
1213
build_script:

0 commit comments

Comments
 (0)