zoukankan      html  css  js  c++  java
  • VS2010 express中改变VC Default include/lib/… 目录

    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

  • 相关阅读:
    hdu4829 带权并查集(题目不错)
    hdu4829 带权并查集(题目不错)
    洛谷 P1076 寻宝(模拟 && 剪枝)
    洛谷 P1981 表达式求值(模拟)
    洛谷 P2239 螺旋矩阵(模拟 && 数学)
    洛谷 P2118 比例简化(枚举)
    洛谷 P3956 棋盘(记忆化搜索)
    洛谷 P5018 对称二叉树(搜索)
    洛谷 P5016 龙虎斗(模拟)
    洛谷 P1563 玩具谜题(模拟)
  • 原文地址:https://www.cnblogs.com/lizmy/p/2318258.html
Copyright © 2011-2022 走看看