locked
Getting error while building a project - build tools not found RRS feed

  • Question

  • I am getting the following error while building a project:

    Error    1    error MSB8020: The build tools for v120 (Platform Toolset = 'v120') cannot be found. To build using the v120 build tools, please install v120 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 "Upgrade Solution...".    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.targets

    It tells me to upgrade the project, but I have. This is running on VS2013. Why are the build tools not installed and how do I fix it?

    Monday, October 21, 2013 9:19 PM

Answers

  • Hello,

    Please restart your PC, run VS as admin, create a new and simple Visual C++ project in VS 2013 and then build it with Platform Toolset='v120' to check if you still will get such issue.

    If yes, I doubt the issue may be related to your VS setup. I suggest you try to repair your VS or reinstall it to check the result.

    If a new C++ project works fine with VS 2013, I doubt that there may be anything wrong with the upgrade of the solution. Please create a new C++ project and upgrade it and then build it with Platform Toolset = 'v120' to check the result.

    Thanks,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, October 22, 2013 12:27 PM
  • Hi SeanStarkey,

    Please open your project file (.proj), and make sure that the ToolsVersion is 12.0.

    <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

    Reference:

    http://msdn.microsoft.com/en-us/library/vstudio/hh162058(v=vs.120).aspx

    Best Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, October 24, 2013 3:23 AM

All replies

  • Hello,

    Please restart your PC, run VS as admin, create a new and simple Visual C++ project in VS 2013 and then build it with Platform Toolset='v120' to check if you still will get such issue.

    If yes, I doubt the issue may be related to your VS setup. I suggest you try to repair your VS or reinstall it to check the result.

    If a new C++ project works fine with VS 2013, I doubt that there may be anything wrong with the upgrade of the solution. Please create a new C++ project and upgrade it and then build it with Platform Toolset = 'v120' to check the result.

    Thanks,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, October 22, 2013 12:27 PM
  • Hi SeanStarkey,

    Please open your project file (.proj), and make sure that the ToolsVersion is 12.0.

    <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

    Reference:

    http://msdn.microsoft.com/en-us/library/vstudio/hh162058(v=vs.120).aspx

    Best Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, October 24, 2013 3:23 AM
  • I am facing the same issue here, or maybe a slight variation: Building from within the IDE (VS2013 Ult) works fine, but using MSBuild leaves me with the same error reported above.

    I tried the steps above, and after repairing VS, I can't boot MSBuild (in c:\Program Files (x86)\MSBuild\12.0\Bin\amd64\MSBuild.exe). Trying to boot MSBuild on my Win8.1 box gives me an error stating that the app can't be run, and an "Access Denied" in the command prompt it was started from.

    To make matters simple, I used the sample here: http://msdn.microsoft.com/en-us/library/dd293607.aspx, so ToolsVersion is set to "12.0", and I have added the PreferredToolsArchitecture setting it to x64 as I am on a 64 bit box.

    Please advice how to fix this.

    Monday, December 30, 2013 5:10 PM