英文:
Platform toolset (v90) not found
问题
我有一个带有许多C++和C#项目的Visual Studio解决方案。在x64平台上构建突然停止了。但我仍然可以在x32上构建。问题可能是什么?
错误信息:
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(440,5): error MSB8020: 无法找到Visual Studio 2008的构建工具(平台工具集 = 'v90')。要使用v90构建工具进行构建,请安装Visual Studio 2008构建工具。或者,您可以选择“项目”菜单或右键单击解决方案,然后选择“重新定位解决方案”以升级到当前的Visual Studio工具。
尝试构建2010项目时也出现相同的错误(v100)。
我尝试卸载/安装VS 2008,但没有任何变化。
英文:
I have visual studio sulution with many c++ and c# project.Building on x64 platform suddenly stopped. But i still can build on x32l. What can be the problem ?
The error:
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(440,5): error MSB8020: The build tools for Visual Studio 2008 (Platform Toolset = 'v90') cannot be found. To build using the v90 build tools, please install Visual Studio 2008 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".
Same error occurs when im trying to build 2010 project too (v100)
I tried to uninstall/install VS 2008 nothing changed.
答案1
得分: 0
问题是我缺少了这个文件
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\Microsoft.Cpp.x64.props
英文:
The problem was that i was missing this file
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\Microsoft.Cpp.x64.props
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论