MS Build Version for Visual Studio 2017

Serge Camille's Avatar

Serge Camille

12 Jul, 2018 08:55 PM

I get the following error message when trying to build with Visual Studio 2017 Image using custom build_script step using MSBuild.exe

     1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.targets(57,5): error MSB8020: The build tools for v141 (Platform Toolset = 'v141') cannot be found. To build using the v141 build tools, please install v141 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [C:\projects\simc\vs\simc_vs2017.vcxproj]

Build: https://ci.appveyor.com/project/scamille/simc/build/job/sx4nampjxwv...
Appveyor.yml: https://github.com/simulationcraft/simc/blob/88109c3ce6d03df316e92e...

I read about https://help.appveyor.com/discussions/questions/3448-platform-tools... but no satisfactory solution was provided there.

  1. Support Staff 1 Posted by Owen McDonnell on 13 Jul, 2018 03:53 AM

    Owen McDonnell's Avatar

    It looks like your intention was to change the build image for each build job given that you have an environment variable named image: defined in the 'environment.matrix' key. But that doesn't have the same meaning of the 'image' keyword at the top level of yaml. It's just a regular environment variable and therefore the default build image (Visual studio 2015) is being used in both jobs.

    Instead you should use the tweak environment variable `APPVEYOR_BUILD_WORKER_IMAGE'.

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