VS2010项目需要添加包含目录和库目录,在“项目” -> “属性” -> “配置属性” -> “VC++目录” -> "常规"内添加,点击“编辑”,即可添加需要的第三方库问价。
在“包含文件”中添加即可,其中“继承的值”里面可能有我们不需要的库目录,这时候需要在C盘中找到文件删除。
路径为“C:\Users\Administrator\AppData\Local\Microsoft\MSBuild\v4.0”
使用 Notepad++ 编辑相应文件,删除不需要的路径即可
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ExecutablePath>$(ExecutablePath)</ExecutablePath>
<IncludePath>$(IncludePath)</IncludePath>
<ReferencePath>$(ReferencePath)</ReferencePath>
<LibraryPath>$(LibraryPath)</LibraryPath>
<SourcePath>$(SourcePath)</SourcePath>
<ExcludePath>$(ExcludePath)</ExcludePath>
</PropertyGroup>
</Project>
分别在<PropertyGroup> 的<IncludePath>增添加包含目录,在<LibraryPath>项中添加库目录,保存重启VS即可。