轉(zhuǎn)自: http://www.cnblogs.com/lizmy/archive/2012/01/10/2318258.html
2010中是以工程為單位,更改VC++ directories。每個工程都修改一便很是繁瑣,因此想修改下默認VC目錄。
從網(wǎng)上查了下,主流的方法是:
View-> Other windows –> Property Manager
公共靜態(tài)庫的設(shè)置
但對于 express 版本,沒有Property manager窗口,因此修改這份文件:
Win7下: C:\Users\<user>\AppData\Local\Microsoft\MSBuild\v4.0
32位版本: Microsoft.Cpp.Win32.user.props
64位版本: Microsoft.Cpp.x64.user.props
默認:
<?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> </Project>
修改為:
<?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>D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include;$(IncludePath)</IncludePath> <ReferencePath>$(ReferencePath)</ReferencePath> <LibraryPath>D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib;$(LibraryPath)</LibraryPath> <SourcePath>$(SourcePath)</SourcePath> <ExcludePath>$(ExcludePath)</ExcludePath> </PropertyGroup> </Project>
修改Linker –> Input –> Addition Dependencies
Powered by: C++博客 Copyright © 金慶