[MSVC] Updating from SDK 7.1 to WinKit 10.0.17xx

gvanem's Avatar

gvanem

31 Oct, 2018 06:41 PM

In my appveyor.yml for MSVC I have this line:

 - cmd: if "%BUILDER%"=="msvc" call "c:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /%CPU%
But that SDK is way too old for what stuff I'm currently compiling (Windows Filtering Platform).
Using the above SDK together with <fwpmu.h> throw up a lot of errors not found in a WinKit SDK v10.x.
So how do I rewrite the above SetEnv.cmd line?

And, BTW I use a Nmake / GNU-make build method (no pesky MSbuild).

  1. Support Staff 1 Posted by Ilya Finkelshte... on 01 Nov, 2018 08:07 PM

    Ilya Finkelshteyn's Avatar

    Please check Windows SDKs list installed on AppVeyor Windows images: https://www.appveyor.com/docs/windows-images-software/#windows-sdks

    You can get specific directories for SDKs by running the following command in PowerShell at any build stage:

    dir 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\Microsoft SDKs\Windows' -Recurse
    
  2. 2 Posted by gvanem on 01 Nov, 2018 08:49 PM

    gvanem's Avatar

    Please check Windows SDKs list installed on AppVeyor Windows images: https://www.appveyor.com/docs/windows-images-software/#windows-sdks

    Thanks for replying, but I fail to understand how to enable one of those images. No examples AFAICS.

    But I fixed my problem in this way instead:

    - cmd: if "%BUILDER%"=="msvc" call "c:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %CPU%
    

    Works for CPU=x86. But I've not tested CPU=x64.

  3. Support Staff 3 Posted by Ilya Finkelshte... on 01 Nov, 2018 09:45 PM

    Ilya Finkelshteyn's Avatar

    Default image is Visual Studio 2015. More information about images and how to enable specific one is here: https://www.appveyor.com/docs/build-environment/#build-worker-images

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac