The build tools for v143 cannot be found - Build Tool Installed & Using Correct VS Version
Asked Answered
S

4

16

This is similar to other questions where MS build tools could not be found but in my case I have already installed the build tools and I am using the correct version of VS for the specified tools (VS2022) on Windows 10.

The error message "The build tools for v143 cannot be found" is occurring when I try to build a C++ project in VS2022 that was originally developed using VS2010 but was upgraded to use the v143 build tools.

I have the following installed:

VS Installer - Components (Compilers, Build Tools And Runtimes)

VS Installer - Components (Development Activities)

Can anyone explain why this is happening and provide a solution?

Sex answered 10/6, 2022 at 11:5 Comment(2)
Do you know if it needs a specific toolset version? #67488578Desmond
I've got the latest version available and latest VS updateSex
Q
7

I suggest you refer to this issue:

I suggest you install VS2022 to use v143 build tools. Or you can right-click on your project > Properties > General > Platform Toolset and select the corresponding version for your VS.

Similarly, this FeedBack also has reference value.

Quash answered 13/6, 2022 at 2:46 Comment(4)
The correct version of the build tools are installed for the correct version of VSSex
@Sex >you can right-click on your project > Properties > General > Platform Toolset and select the corresponding version for your VS. Please try this setting.Quash
Yes. This worked for me. I had both VS2019 and VS 2022 installed. I got the error when compiling with VS2019. Then I tried vs2022 and it worked.Guertin
I'm using VS 2022, got the issue: Error MSB8020 The build tools for v143 (Platform Toolset = 'v143') cannot be found. Installed learn.microsoft.com/en-us/answers/questions/769911/… but the issue still there. Any thoughts ?Singsong
A
0

check that VCTargetsPath points to c:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\

Alda answered 4/1, 2023 at 12:33 Comment(1)
This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From ReviewFluorosis
A
0

I faced similar issue. I had VCTargetsPath set in my environment Variable. On deleting this variable, project build successfully

Amiraamis answered 20/1, 2023 at 9:41 Comment(0)
D
0

maybe you are opening the project in VS 2019, it happens to me.

Dusky answered 8/4, 2024 at 17:4 Comment(1)
OP mentioned they are using the correct VS version, so it seems like they already checked.Cichocki

© 2022 - 2025 — McMap. All rights reserved.