用户环境变量添加
INCLUDE=C:inc;c:inc2
LIB=c:lib
编辑文件C:UsersAdministratorAppDataLocalMicrosoftMSBuildv4.0Microsoft.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>
<LibraryPath>$(LIB);$(LibraryPath)</LibraryPath>
<IncludePath>$(INCLUDE);$(IncludePath)</IncludePath>
</PropertyGroup>
</Project>