VS2010 express中改变VC Default include/lib/… 目录

转自: Liz's Blog http://www.cnblogs.com/lizmy/archive/2012/01/10/2318258.html

2010中是以工程为单位,更改VC++ directories。每个工程都修改一便很是繁琐,因此想修改下默认VC目录。

从网上查了下,主流的方法是:

View-> Other windows –> Property Manager

image


image

公共静态库的设置

image

但对于 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


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值