Error MSB8020 when building projects generated with CMake
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
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

Support Staff 1 Posted by Feodor Fitsner on 24 Apr, 2014 12:10 AM
Hi Victor,
By default, it's MSBuild 4.0 x86 (
C:\Windows\Microsoft.NET\Framework\v4.0.30319inPATH).2 Posted by victor.zverovic... on 24 Apr, 2014 04:07 PM
Hi Feodor,
So how can I change the version of MSBuild used?
Thanks,
Victor
Support Staff 3 Posted by Feodor Fitsner on 24 Apr, 2014 05:11 PM
If you mean MSBuild 12.0 you can change PATH variable like that:
Let me know if it works for you.
4 Posted by victor.zverovic... on 24 Apr, 2014 08:32 PM
Yes, it works. Thanks a lot!
Support Staff 5 Posted by Feodor Fitsner on 24 Apr, 2014 10:08 PM
Very well, thanks for the update! I'm changing default path to MSBuild on build worker image.
6 Posted by sudha on 08 Sep, 2015 06:14 AM
I got the same error but can i know where does path exist
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:59 AM.