Which platform toolset for MSVC 2017?

Jan's Avatar

Jan

21 May, 2019 10:09 AM

Hi,
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

branches:
  only:
  - appveyor
image: Visual Studio 2017

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

Link to the failed build is
https://ci.appveyor.com/project/JanC/xplaneconnect/builds/24694594/...

cheers

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

    Jan's Avatar

    ok I found out the AppVeyor projects should use

    <PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
    

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

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

    https://ci.appveyor.com/project/JanC/xplaneconnect/builds/24695311

  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

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

Recent Discussions

21 Aug, 2019 11:06 PM
21 Aug, 2019 02:08 PM
21 Aug, 2019 01:37 PM
21 Aug, 2019 10:21 AM
21 Aug, 2019 09:10 AM

 

21 Aug, 2019 05:56 AM
21 Aug, 2019 03:08 AM
20 Aug, 2019 11:33 PM
20 Aug, 2019 08:07 PM
20 Aug, 2019 05:50 PM
20 Aug, 2019 12:35 PM