From 62b08c3d1e31ca67f54b7246c5e8dfc4fed4287e Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Sat, 7 Sep 2019 04:54:39 +0100 Subject: [PATCH] appveyor: WDK 1903 hackfix --- appveyor.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/appveyor.yml b/appveyor.yml index ba087bbe..5abcac82 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -15,6 +15,13 @@ init: #- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) install: +- ps: | + # Hack to make WDK 1903 work on VS2015. + # See https://github.com/appveyor-tests/WDK-10.0.14393.0/blob/31cf12217fe0c92b218c70d7027dfe145be4f4cb/appveyor.yml#L7 + [xml]$targets = get-content "C:\Program Files (x86)\Windows Kits\10\build\WindowsDriver.Common.targets" + $usingTask = $targets.ChildNodes[1].UsingTask | ? {$_.TaskName -eq "ValidateNTTargetVersion"} + $usingTask.AssemblyFile = '$(WDKContentRoot)build\bin\Microsoft.DriverKit.Build.Tasks.16.0.dll' + $targets.Save("C:\Program Files (x86)\Windows Kits\10\build\WindowsDriver.Common.targets") - git submodule update --init --recursive - appveyor AddMessage "Change boot configuration and reboot" -Category Information - bcdedit /set testsigning on