VS 2012 - Project failed to build because of missing Toolset

后端 未结 2 1977
独厮守ぢ
独厮守ぢ 2020-12-04 19:16

I am unable to compile/build anything within Visual Studio C++ 2012 because I am getting an error that states either I have an inappropriate ToolsVersion or that the ToolSet

相关标签:
2条回答
  • 2020-12-04 19:39

    The builds tools for v120 (Platform Toolset = 'v120') cannot be found

    Project -> Properties -> General -> Platform Toolset (as IInspectable correctly commented)

    Project file contains ToolsVersion="12.0" (...) Treating the project as if it had ToolsVersion="4.0"

    1. Right-click project -> Unload Project
    2. Right-click project -> Edit (name).vcxproj
      • Change this line: <Project DefaultTargets="Build" ToolsVersion="12.0" ...
      • into: <Project DefaultTargets="Build" ToolsVersion="4.0" ...
    3. Save, close, Right-click project -> Reload Project
    0 讨论(0)
  • 2020-12-04 20:03

    Try Microsoft Build Tools 2013 for building ToolsVersion="12.0" projects here:

    http://www.microsoft.com/en-au/download/details.aspx?id=40760

    It might help you get going.

    0 讨论(0)
提交回复
热议问题