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]


I read about 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'.

  2. Ilya Finkelshteyn closed this discussion on 12 Sep, 2018 09:00 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