vs2015 通用项目属性 包含路径设置方法 项目属性的默认包含路径设置方法

原创 2014年01月10日 10:16:03
  • 标签:
  • c++

有两种方法可以设置vs2010的默认包含路径

方法一:

点击“视图->属性管理器”,在打开的属性管理器中选择Microsoft.Cpp.Win32.user打开

vs2015 全局头文件 库文件引用设置方法

打开后将出现如下图所示:

vs2015 全局头文件 库文件引用设置方法

这时候就可以设置默认目录了。


方法二:

打开 C:\Users\Administrator\AppData\Local\Microsoft\MSBuild\v4.0目录中的 Microsoft.Cpp.Win32.user.props 文件,里面内容一般如下

[html] view plaincopy
  1. <?xml version="1.0" encoding="utf-8"?>  
  2. <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">  
  3.  <PropertyGroup>  
  4.    <ExecutablePath>$(ExecutablePath)</ExecutablePath>  
  5.    <IncludePath>$(IncludePath)</IncludePath>  
  6.    <ReferencePath>$(ReferencePath)</ReferencePath>  
  7.    <LibraryPath>$(LibraryPath)</LibraryPath>  
  8.    <SourcePath>$(SourcePath)</SourcePath>  
  9.    <ExcludePath>$(ExcludePath)</ExcludePath>  
  10.  </PropertyGroup>  
  11. </Project>  


分别在<PropertyGroup> 的<IncludePath>增添加包含目录,在<LibraryPath>项中添加库目录,保存重启VS即可。

相关文章:

  • 2021-09-25
  • 2021-11-24
  • 2022-01-19
  • 2021-10-21
  • 2021-04-01
  • 2022-12-23
  • 2021-05-27
猜你喜欢
  • 2022-12-23
  • 2021-06-28
  • 2021-05-10
  • 2021-05-11
  • 2022-12-23
  • 2021-09-09
  • 2021-12-03
相关资源
相似解决方案