VS2010 項目屬性的默認包含路徑設置方法


 

VS2010 項目屬性的默認包含路徑設置方法

分類: c++小技巧
c++

有兩種方法可以設置vs2010的默認包含路徑

方法一:

點擊“視圖->屬性管理器”,在打開的屬性管理器中選擇Microsoft.Cpp.Win32.user打開

打開后將出現如下圖所示:

這時候就可以設置默認目錄了。

 

方法二:

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

[html]  view plain copy
 
 
  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即可。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM