11version : 2.2.{build}
2- image : Visual Studio 2015
2+ image : Visual Studio 2017
33
44
55environment :
66 matrix :
7- - PlatformToolset : v120_xp
87 - PlatformToolset : v140_xp
8+ - PlatformToolset : v141_xp
99
1010platform :
1111 - x64
@@ -18,35 +18,36 @@ configuration:
1818
1919install :
2020 - if "%platform%"=="x64" set archi=amd64
21+ - if "%platform%"=="x64" set platform_input=x64
22+
2123 - if "%platform%"=="Win32" set archi=x86
22- - call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %archi%
24+ - if "%platform%"=="Win32" set platform_input=Win32
2325
24- build :
25- parallel : true # enable MSBuild parallel builds
26- verbosity : minimal
26+ - if "%PlatformToolset%"=="v140_xp" call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %archi%
27+ - if "%PlatformToolset%"=="v141_xp" call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %archi%
2728
2829build_script :
2930 - cd "%APPVEYOR_BUILD_FOLDER%"
30- - msbuild NppPluginTemplate.vcxproj /m /p:configuration="%configuration%" /p:platform="%platform %" /p:PlatformToolset="%PlatformToolset%"
31+ - msbuild NppPluginTemplate.vcxproj /m /p:configuration="%configuration%" /p:platform="%platform_input %" /p:PlatformToolset="%PlatformToolset%"
3132
3233after_build :
3334 - cd "%APPVEYOR_BUILD_FOLDER%"
3435 - ps : >-
3536
36- if ($env:PLATFORM -eq "x64" -and $env:CONFIGURATION -eq "Release") {
37+ if ($env:PLATFORM_INPUT -eq "x64" -and $env:CONFIGURATION -eq "Release") {
3738 Push-AppveyorArtifact "bin64\SecurePad.dll" -FileName SecurePad.dll
3839 }
3940
40- if ($env:PLATFORM -eq "Win32" -and $env:CONFIGURATION -eq "Release") {
41+ if ($env:PLATFORM_INPUT -eq "Win32" -and $env:CONFIGURATION -eq "Release") {
4142 Push-AppveyorArtifact "bin\SecurePad.dll" -FileName SecurePad.dll
4243 }
4344
44- if ($($env:APPVEYOR_REPO_TAG) -eq "true" -and $env:CONFIGURATION -eq "Release" -and $env:PLATFORMTOOLSET -eq "v120_xp ") {
45- if($env:PLATFORM -eq "x64"){
45+ if ($($env:APPVEYOR_REPO_TAG) -eq "true" -and $env:CONFIGURATION -eq "Release" -and $env:PLATFORMTOOLSET -eq "v140_xp ") {
46+ if($env:PLATFORM_INPUT -eq "x64"){
4647 $ZipFileName = "SecurePad_$($env:APPVEYOR_REPO_TAG_NAME)_x64.zip"
4748 7z a $ZipFileName .\bin64\SecurePad.dll
4849 }
49- if($env:PLATFORM -eq "Win32"){
50+ if($env:PLATFORM_INPUT -eq "Win32"){
5051 $ZipFileName = "SecurePad_$($env:APPVEYOR_REPO_TAG_NAME)_x86.zip"
5152 7z a $ZipFileName .\bin\SecurePad.dll
5253 }
@@ -66,5 +67,5 @@ deploy:
6667 force_update : true
6768 on :
6869 appveyor_repo_tag : true
69- PlatformToolset : v120_xp
70+ PlatformToolset : v140_xp
7071 configuration : Release
0 commit comments