金庆的专栏

  C++博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  423 随笔 :: 0 文章 :: 454 评论 :: 0 Trackbacks

转自: 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

posted on 2015-02-22 10:08 金庆 阅读(486) 评论(0)  编辑 收藏 引用 所属分类: 1. C/C++

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理