VS2010 項目屬性的默認包含路徑設置方法
有兩種方法可以設置vs2010的默認包含路徑
方法一:
點擊“視圖->屬性管理器”,在打開的屬性管理器中選擇Microsoft.Cpp.Win32.user打開
打開后將出現如下圖所示:
這時候就可以設置默認目錄了。
方法二:
打開 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即可。
浙公網安備 33010602011771號