File tree Expand file tree Collapse file tree 2 files changed +16
-12
lines changed Expand file tree Collapse file tree 2 files changed +16
-12
lines changed Original file line number Diff line number Diff line change 6
6
Write-Host " Config: $config "
7
7
8
8
function Build-Version {
9
- if ([string ]::IsNullOrEmpty($env: APPVEYOR_BUILD_VERSION )) {
9
+ if ([string ]::IsNullOrEmpty($env: flowVersion )) {
10
10
$v = (Get-Command ${TargetPath} ).FileVersionInfo.FileVersion
11
11
} else {
12
- $v = $env: APPVEYOR_BUILD_VERSION
12
+ $v = $env: flowVersion
13
13
}
14
14
15
15
Write-Host " Build Version: $v "
Original file line number Diff line number Diff line change 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
2
7
3
8
assembly_info :
4
9
patch : true
5
10
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)
10
14
dotnet_csproj :
11
15
patch : true
12
16
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)
18
22
19
23
skip_commits :
20
24
files :
You can’t perform that action at this time.
0 commit comments