打开 C:\Users\me>\AppData\Local\Microsoft\MSBuild\v4.0\Microsoft.Cpp.Win32.user.props 文件,在该文件中添加分别向 <IncludePath> 字段添加 $(UniversalCRT_IncludePath) 和向 <LibraryPath> 中添加 $(UniversalCRT_LibraryPath_x86) 。应网友要求将修改后的Microsoft.Cpp.Win32.user.props文件贴在下面供参考:
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<IncludePath>$(VCInstallDir)include;$(VCInstallDir)atlmfc\include;$(WindowsSdkDir)include;$(WindowsSDK_IncludePath);$(UniversalCRT_IncludePath);$(FrameworkSDKDir)\include</IncludePath>
<LibraryPath>$(VCInstallDir)lib;$(VCInstallDir)atlmfc\lib;$(WindowsSdkDir)lib;$(WindowsSDK_LibraryPath_x86);$(UniversalCRT_LibraryPath_x86);$(FrameworkSDKDir)\lib</LibraryPath>
</PropertyGroup>
</Project>