mirror of
https://github.com/winfsp/winfsp.git
synced 2025-05-03 11:43:07 -05:00
tools: build.bat: fix target SDK for AppVeyor
This commit is contained in:
parent
fb14262e43
commit
6803bb4136
@ -28,9 +28,11 @@ set BuildArm64=yes
|
||||
if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" (
|
||||
set BuildArm64=no
|
||||
set UseDotnetSdk=yes
|
||||
set FixWindowsSdk=yes
|
||||
)
|
||||
if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" (
|
||||
set BuildArm64=no
|
||||
set FixWindowsSdk=yes
|
||||
)
|
||||
if X%BuildArm64%==Xno (
|
||||
echo WARNING: APPVEYOR BUILD ON UNSUPPORTED VERSION OF VISUAL STUDIO.
|
||||
@ -61,6 +63,11 @@ if X%SignedPackage%==X (
|
||||
if exist "%%d" rmdir /s/q "%%d"
|
||||
)
|
||||
|
||||
if X%FixWindowsSdk%==Xyes (
|
||||
powershell -command "($xml=[xml](Get-Content 'build.version.props')).Project.PropertyGroup.MyTargetPlatformVersion='$(LatestTargetPlatformVersion)'; $xml.Save('build.version.props')"
|
||||
if errorlevel 1 goto fail
|
||||
)
|
||||
|
||||
if X%BuildArm64%==Xyes (
|
||||
devenv winfsp.sln /build "%Configuration%|ARM64"
|
||||
if errorlevel 1 goto fail
|
||||
|
Loading…
x
Reference in New Issue
Block a user