Skip to content

Commit 4c69063

Browse files
committed
Check if APPVEYOR_BUILD_VERSION set and use that as nupkg version
1 parent 0baf003 commit 4c69063

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
environment:
22
VisualStudioVersion: 11.0
33

4-
version: 37.0.0.CI{build}
4+
version: 37.0.0-CI{build}
55

66
shallow_clone: true
77

build.ps1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ param(
33
[Parameter(Position = 0)]
44
[string] $Target = "nupkg",
55
[Parameter(Position = 1)]
6-
[string] $Version = "37.0.0-pre02",
6+
[string] $Version = "37.0.0-pre01",
77
[Parameter(Position = 2)]
88
[string] $AssemlyVersion = "37.0.0",
99
[Parameter(Position = 3)]
@@ -14,6 +14,11 @@ $WorkingDir = split-path -parent $MyInvocation.MyCommand.Definition
1414

1515
$CefSln = Join-Path $WorkingDir 'CefSharp3.sln'
1616

17+
if (Test-Path Env:\APPVEYOR_BUILD_VERSION)
18+
{
19+
$Version = Env:\APPVEYOR_BUILD_VERSION
20+
}
21+
1722
# https://github.com/jbake/Powershell_scripts/blob/master/Invoke-BatchFile.ps1
1823
function Invoke-BatchFile
1924
{

0 commit comments

Comments
 (0)