diff --git a/PyNPP.vcxproj b/PyNPP.vcxproj
index 9824979..5b6768e 100644
--- a/PyNPP.vcxproj
+++ b/PyNPP.vcxproj
@@ -69,12 +69,9 @@
true
-
- true
-
- WIN32;_DEBUG;_WINDOWS;_USRDLL;PYNPP_EXPORTS;%(PreprocessorDefinitions)
+ WIN32;_DEBUG;_WINDOWS;_USRDLL;PYNPP_EXPORTS;_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES;%(PreprocessorDefinitions)
MultiThreadedDebugDLL
Level3
ProgramDatabase
@@ -90,7 +87,7 @@
- WIN32;NDEBUG;_WINDOWS;_USRDLL;PYNPP_EXPORTS;%(PreprocessorDefinitions)
+ WIN32;NDEBUG;_WINDOWS;_USRDLL;PYNPP_EXPORTS;_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES;%(PreprocessorDefinitions)
MultiThreadedDLL
Level3
ProgramDatabase
@@ -107,6 +104,7 @@
+ WIN32;_DEBUG;_WINDOWS;_USRDLL;PYNPP_EXPORTS;_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES;%(PreprocessorDefinitions)
true
Level3
MultiThreadedDebugDLL
@@ -118,11 +116,14 @@
+ WIN32;NDEBUG;_WINDOWS;_USRDLL;PYNPP_EXPORTS;_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES;%(PreprocessorDefinitions)
true
Level3
MultiThreadedDLL
+ true
+ true
shlwapi.lib;%(AdditionalDependencies)
Windows
diff --git a/appveyor.yml b/appveyor.yml
index c9f2ab5..abf2703 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -1,10 +1,11 @@
version: 1.2.1.{build}
-image: Visual Studio 2015
+image: Visual Studio 2017
environment:
matrix:
- PlatformToolset: v140_xp
+ - PlatformToolset: v141_xp
platform:
- x64
@@ -17,35 +18,37 @@ configuration:
install:
- if "%platform%"=="x64" set archi=amd64
+ - if "%platform%"=="x64" set platform_input=x64
+
- if "%platform%"=="x86" set archi=x86
- - call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %archi%
+ - if "%platform%"=="x86" set platform_input=x86
+
+ - if "%PlatformToolset%"=="v140_xp" call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %archi%
+ - if "%PlatformToolset%"=="v141_xp" call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %archi%
-build:
- parallel: true # enable MSBuild parallel builds
- verbosity: minimal
build_script:
- cd "%APPVEYOR_BUILD_FOLDER%"
- - msbuild PyNPP.sln /m /p:configuration="%configuration%" /p:platform="%platform%" /p:PlatformToolset="%PlatformToolset%" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
+ - msbuild PyNPP.sln /m /p:configuration="%configuration%" /p:platform="%platform_input%" /p:PlatformToolset="%PlatformToolset%" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
after_build:
- cd "%APPVEYOR_BUILD_FOLDER%"
- ps: >-
- if ($env:PLATFORM -eq "x64") {
- Push-AppveyorArtifact "$env:PLATFORM\$env:CONFIGURATION\PyNPP.dll" -FileName PyNPP.dll
+ if ($env:PLATFORM_INPUT -eq "x64") {
+ Push-AppveyorArtifact "$env:PLATFORM_INPUT\$env:CONFIGURATION\PyNPP.dll" -FileName PyNPP.dll
}
- if ($env:PLATFORM -eq "x86" ) {
+ if ($env:PLATFORM_INPUT -eq "x86" ) {
Push-AppveyorArtifact "$env:CONFIGURATION\PyNPP.dll" -FileName PyNPP.dll
}
if ($($env:APPVEYOR_REPO_TAG) -eq "true" -and $env:CONFIGURATION -eq "Release" -and $env:PLATFORMTOOLSET -eq "v140_xp") {
- if($env:PLATFORM -eq "x64"){
+ if($env:PLATFORM_INPUT -eq "x64"){
$ZipFileName = "PyNPP_$($env:APPVEYOR_REPO_TAG_NAME)_x64.zip"
- 7z a $ZipFileName $env:PLATFORM\$env:CONFIGURATION\PyNPP.dll
+ 7z a $ZipFileName $env:PLATFORM_INPUT\$env:CONFIGURATION\PyNPP.dll
}
- if($env:PLATFORM -eq "x86"){
+ if($env:PLATFORM_INPUT -eq "x86"){
$ZipFileName = "PyNPP_$($env:APPVEYOR_REPO_TAG_NAME)_x86.zip"
7z a $ZipFileName $env:CONFIGURATION\PyNPP.dll
}