Skip to content

Commit 76e7136

Browse files
committed
appveyor: update versioning
1 parent 12bcb6b commit 76e7136

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

Scripts/post_build.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ param(
66
Write-Host "Config: $config"
77

88
function Build-Version {
9-
if ([string]::IsNullOrEmpty($env:APPVEYOR_BUILD_VERSION)) {
9+
if ([string]::IsNullOrEmpty($env:flowVersion)) {
1010
$v = (Get-Command ${TargetPath}).FileVersionInfo.FileVersion
1111
} else {
12-
$v = $env:APPVEYOR_BUILD_VERSION
12+
$v = $env:flowVersion
1313
}
1414

1515
Write-Host "Build Version: $v"

appveyor.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
1-
version: 1.0.{build}
1+
version: '1.0.0.{build}'
2+
3+
init:
4+
- ps: |
5+
$version = new-object System.Version $env:APPVEYOR_BUILD_VERSION
6+
$env:flowVersion = "{0}.{1}.{2}" -f $version.Major, $version.Minor, $version.Build
27
38
assembly_info:
49
patch: true
510
file: SolutionAssemblyInfo.cs
6-
assembly_version: '{version}'
7-
assembly_file_version: '{version}'
8-
assembly_informational_version: '{version}'
9-
11+
assembly_version: $(flowVersion)
12+
assembly_file_version: $(flowVersion)
13+
assembly_informational_version: $(flowVersion)
1014
dotnet_csproj:
1115
patch: true
1216
file: 'Flow.*\*.csproj'
13-
version: '{version}'
14-
package_version: '{version}'
15-
assembly_version: '{version}'
16-
file_version: '{version}'
17-
informational_version: '{version}'
17+
version: $(flowVersion)
18+
package_version: $(flowVersion)
19+
assembly_version: $(flowVersion)
20+
file_version: $(flowVersion)
21+
informational_version: $(flowVersion)
1822

1923
skip_commits:
2024
files:

0 commit comments

Comments
 (0)