Error MSB8020 when building projects generated with CMake

victor.zverovich's Avatar

victor.zverovich

23 Apr, 2014 11:39 PM

I get the following error when trying to build Visual Studio project files generated with CMake:


C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.Cpp.Platform.targets(44,5): error MSB8020: The builds tools for v120 (Platform Toolset = 'v120') cannot be found. To build using the v120 build tools, either click the Project menu or right-click the solution, and then select "Update VC++ Projects...". Install v120 to build using the v120 build tools. [C:\projects\cppformat\ZERO_CHECK.vcxproj]

According to http://stackoverflow.com/questions/19801072/the-builds-tools-for-v1... this might indicate a wrong version of MSBuild being used. Any ideas how to fix this?

Here's the complete log: https://ci.appveyor.com/project/vitaut/cppformat/build/1.0.1

  1. Support Staff 1 Posted by Feodor Fitsner on 24 Apr, 2014 12:10 AM

    Feodor Fitsner's Avatar

    Hi Victor,

    By default, it's MSBuild 4.0 x86 (C:\Windows\Microsoft.NET\Framework\v4.0.30319 in PATH).

  2. 2 Posted by victor.zverovic... on 24 Apr, 2014 04:07 PM

    victor.zverovich's Avatar

    Hi Feodor,

    So how can I change the version of MSBuild used?

    Thanks,
    Victor

  3. Support Staff 3 Posted by Feodor Fitsner on 24 Apr, 2014 05:11 PM

    Feodor Fitsner's Avatar

    If you mean MSBuild 12.0 you can change PATH variable like that:

    install:
      - SET PATH=C:\Program Files (x86)\MSBuild\12.0\bin\;%PATH%
    

    Let me know if it works for you.

  4. 4 Posted by victor.zverovic... on 24 Apr, 2014 08:32 PM

    victor.zverovich's Avatar

    Yes, it works. Thanks a lot!

  5. Support Staff 5 Posted by Feodor Fitsner on 24 Apr, 2014 10:08 PM

    Feodor Fitsner's Avatar

    Very well, thanks for the update! I'm changing default path to MSBuild on build worker image.

  6. 6 Posted by sudha on 08 Sep, 2015 06:14 AM

    sudha's Avatar

    I got the same error but can i know where does path exist

  7. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:59 AM.

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