1、无法识别元素 <Target> 下面的元素 <#text>。 不能加载项目
C:\DEVTOOLS\VS2017\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.WindowsSDK.targets
解决方法:
先备份Microsoft.Cpp.WindowsSDK.targets,打开Microsoft.Cpp.WindowsSDK.targets,删掉
<!-- general error message if windows SDK is not installed -->
<!--<VCMessage Code="MS-->B8036" Type="Error" Arguments="$(TargetPlatformVersion)" Condition="'$(WindowsSDKInstalled)' != 'true'" />
<!-- special error message if Desktop support for a particular platform is not installed -->
<!--<VCMessage Code="MSB8037" Type="Error" Arguments="$(TargetPlatformVersion);$(PlatformShortName)" Condition="'$(WindowsAppContainer)' != 'true' and '$(WindowsSDK_Desktop_Support)' != true" />-->
2、无法找到 v120 的生成工具(平台工具集 =“v120”)。若要使用 v120 生成工具进行生成,请安装 v120 生成工具。或者,
可以升级到当前 Visual Studio 工具,方式是通过选择“项目”菜单或右键单击该解决方案,然后选择“重定解决方案目标”。
参考:https://blog.csdn.net/pengshengli/article/details/87020739
项目->重定解决方案目标,设置为V140
3、#error: Macro definition of snprintf conflicts with Standard Library function declaration
参考:https://blog.csdn.net/weixin_34417200/article/details/85888127
注释掉Util/compat.h中的//#define snprintf _snprintf