Which platform toolset for MSVC 2017?

Jan's Avatar


21 May, 2019 10:09 AM

I'm trying to build a MSVC 2017 .sln but I'm getting the error

Project "C:\projects\xplaneconnect\xpcPlugin\xpcPlugin\xpcPlugin.sln" (1) is building "C:\projects\xplaneconnect\xpcPlugin\xpcPlugin\xpcPlugin.vcxproj" (2) on node 1 (default targets).
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.targets(64,5): error MSB8020: The build tools for v141 (Platform Toolset = 'v141') cannot be found.

My project does indeed specify <PlatformToolset>v141</PlatformToolset>

What is the correct toolset to use when building on AppVeyor?

My .yml file is

  - appveyor
image: Visual Studio 2017

configuration: Release
  - x86
  - x64
- cmd: vswhere -products *
  project: xpcPlugin/xpcPlugin/xpcPlugin.sln
  verbosity: normal

Link to the failed build is


  1. 1 Posted by Jan on 21 May, 2019 10:19 AM

    Jan's Avatar

    ok I found out the AppVeyor projects should use


    Nevertheless the solution builds with a linker error while it builds fine locally

    LINK : fatal error LNK1104: cannot open file 'libcpmt.lib'


  2. Jan closed this discussion on 21 May, 2019 12:22 PM.

  3. Jan re-opened this discussion on 21 May, 2019 12:23 PM

  4. 2 Posted by Jan on 21 May, 2019 12:23 PM

    Jan's Avatar

    Closing as I will reopen a new discussion specific to that linker error

  5. Jan closed this discussion on 21 May, 2019 12:23 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? 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