VS2019 MSB8041 MSB8042 Error
vs2015工程移到vs2019
提示错误1: MSB8041 MFC libraries are required for this project. ......
提示错误2: MSB8042 MFC libraries with Spectre Mitigations are. ......
(这里只介绍这两个错误解决方法,如果碰到头文件缺失的错误,具体操作是在你的电脑中搜索到该头文件所在的目录,然后把该目录添加到Project->Properties->VC++ Directories-> Include Directories / Library Directories)
解决错误1如下:
运行Visual Studio Installer,点击下图中得“Modify”
勾选下图红色框内得组件:
解决错误2如下:
进入Project->Properties->C/C++->Code Generation->Spectre Mitigation setup Disabled
重新编译,即可解决