找不到V143的构建工具 - 已安装构建工具&使用正确的VS版本
这类似于无法找到MS构建工具的其他问题,但是在我的情况下,我已经安装了构建工具,并且我正在使用Windows 10上指定的工具(VS2022)的正确版本
VS。无法找到V143的构建工具。“当我尝试在最初使用VS2010开发的VS2022中构建C ++项目时,就会发生,但已升级以使用V143构建工具。
我安装了以下内容:
任何人都可以解释为什么会发生这种情况并提供解决方案?
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:
Can anyone explain why this is happening and provide a solution?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
我建议您参考此问题:
同样,此反馈也具有参考值。
I suggest you refer to this issue:
Similarly, this FeedBack also has reference value.
也许您正在VS 2019中开放该项目,这发生在我身上。
maybe you are opening the project in VS 2019, it happens to me.
我面临类似的问题。我在环境变量中设置了vCtargetSpath。在删除此变量时,项目构建成功
I faced similar issue. I had VCTargetsPath set in my environment Variable. On deleting this variable, project build successfully
在VS2022中,您必须将平台工具集设置为
Visual Studio 2022(V143)
为调试配置做同样的工作。
In VS2022 you have to set the Platform Toolset property to the value of
Visual Studio 2022 (v143)
Do the same for the Debug configuration.
在Windows上构建CPYTHON时,我也有类似的错误。
相关错误消息在下面。
我通过安装
C ++(V143)通用Windows平台...
修复了此问题。I have the similar error when build cpython on windows.
The related error messages are below.
And I fixed this via install
C++(v143) Universal windows Platform ...
.确保VCTARGETSPATH指向:
c:\ program Files(x86)\ Microsoft Visual Studio \ 2022 \ buildTools \ MSBUILD \ MICHOSOFT \ MICROSOFT \ VC \ VC \ VC \ V170 \
Make sure that VCTargetsPath points to:
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\
尽管我在许多项目中都使用
v143
在一个特定的项目中可以对我来说。事实证明,在我的vcxproj文件中,我不小心删除了参考:
一旦我将其添加到所有内容中,就可以了。
This can up for me in a specific project, even though, I was using
v143
in many projects.It turns out in my vcxproj file, I accidently removed the reference:
Once I added it back in everything compiled fine.