我使用以下扩展在Windows x64操作系统上安装了VS 2019版本16.7的MFC扩展:
ATL用于构建工具h 19
ATL和MFC用于build tools H 210G 211
但是,当我打开一个新的MFC项目并尝试构建它时,即使在编辑之前,我也会得到以下错误:MSB804: Severity Code Description Project File Line Suppression State Error MSB8041 MFC libraries are required for this project. Install them from the Visual Studio installer (Individual Components tab) for any toolsets and architectures being used. MFCApplication1 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets 451
我不知道在这一点上可能缺少什么库,我以为我已经安装了所有可能的扩展。也许有人知道我做错了什么,或者我错过了什么图书馆?
非常感谢。
发布于 2022-04-13 09:26:34
Open Visual Studio Installer - > Modify - & gt;
For a single component, select install:
C++ATL for v142 (x86 and x64)
C++MFC for v142 (x86 and x64)
C++ v14.21 ATL for v142 (x86 and x64)
C++v14.21 MFC for v142 (x86 and x64)
If the same error still occurs, install
C++ATL for the latest v142 build tools
C++ MFC for the latest v142 build tool
https://stackoverflow.com/questions/63499717
复制相似问题