XP系统
C:\Documents and Settings\Administrator\Local Settings\Application Data\Microsoft\MSBuild\v4.0
win7系统
C:\Users\Administrator\AppData\Local\Microsoft\MSBuild\v4.0
目录下的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>
<ExecutablePath>$(ExecutablePath)</ExecutablePath>
<IncludePath>$(IncludePath)</IncludePath>
<ReferencePath>$(ReferencePath)</ReferencePath>
<LibraryPath>$(LibraryPath)</LibraryPath>
<SourcePath>$(SourcePath)</SourcePath>
<ExcludePath>$(ExcludePath)</ExcludePath>
</PropertyGroup>
</Project>
分别在<PropertyGroup> 的<IncludePath>增添加包含目录,在<LibraryPath>项中添加库目录,保存重启VS即可。
C:\Documents and Settings\Administrator\Local Settings\Application Data\Microsoft\MSBuild\v4.0
win7系统
C:\Users\Administrator\AppData\Local\Microsoft\MSBuild\v4.0
目录下的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>
<ExecutablePath>$(ExecutablePath)</ExecutablePath>
<IncludePath>$(IncludePath)</IncludePath>
<ReferencePath>$(ReferencePath)</ReferencePath>
<LibraryPath>$(LibraryPath)</LibraryPath>
<SourcePath>$(SourcePath)</SourcePath>
<ExcludePath>$(ExcludePath)</ExcludePath>
</PropertyGroup>
</Project>
分别在<PropertyGroup> 的<IncludePath>增添加包含目录,在<LibraryPath>项中添加库目录,保存重启VS即可。
MSBuild配置详解:路径管理与目录添加
本文深入解析MSBuild配置中的路径管理与目录添加技巧,详细介绍了如何在不同系统环境下修改路径属性,以及如何在特定目录下添加包含目录和库目录,通过实例演示了保存并重启Visual Studio后的应用效果。
1179

被折叠的 条评论
为什么被折叠?



