Search code examples
visual-studio-2017

Visual Studio show me this error v142 tools


Today I'm trying to build a source sent by my friend but visual studio (version 2017) show me an error.

I already have tried to install and re-target the windows sdk version without success

  • SDK 10.0.18362
  • 10.0.17763
  • 10.0.17738

The error is this:

Error MSB8020 The build tools for v142 (Platform Toolset = 'v142') cannot be found. To build using the v142 build tools, please install v142 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". phlib D:\Visual Studio\IDE\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets 67

I don't know why it doesn't work and I have installed all libraries.


Solution

  • Moved from a comment into an answer:

    This is a duplicate of this question. It seems the project was created on a newer version of Visual Studio, that is 2019. You tagged the question with , I suspect that is the problem.

    - asynts Aug 24 at 12:01