IT技術小屋

          秋風秋雨,皆入我心

            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            38 隨筆 :: 1 文章 :: 19 評論 :: 0 Trackbacks
          VS 2010中添加C++目錄的功能已經被否決,可以通過添加User Property Sheet的方法來添加。

          例如,添加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>$(VCInstallDir)PlatformSDK\bin;$(VSInstallDir)\SDK\v2.0\bin;$(ExecutablePath)</ExecutablePath>
              
          <IncludePath>$(VCInstallDir)PlatformSDK\include;D:\Work\SQLite\SourceCode\sqlite-amalgamation-3_6_19;Z:\Common;C:\jdk1.6.0_02\include;$(IncludePath)</IncludePath>
              
          <ReferencePath>$(ReferencePath)</ReferencePath>
              
          <LibraryPath>$(VCInstallDir)PlatformSDK\lib;Z:\Lib;$(LibraryPath)</LibraryPath>
              
          <SourcePath>$(SourcePath)</SourcePath>
              
          <ExcludePath>$(VCInstallDir)PlatformSDK\include;$(ExcludePath)</ExcludePath>
            
          </PropertyGroup>
          </Project>

          屬性文件存放的位置是:
          %USERPROFILE%\Local Settings\Application Data\Microsoft\MSBuild\v4.0

          那么,這個屬性文件會應用到Win32平臺下所有的CPP項目中去。 
          posted on 2011-08-15 10:55 Meng Lee 閱讀(2604) 評論(2)  編輯  收藏 所屬分類: Windows

          評論

          # re: 在VS 2010中添加C++目錄的方法 2011-08-15 15:03 中鞋網
          這個不錯  回復  更多評論
            

          # re: 在VS 2010中添加C++目錄的方法 2011-08-15 15:10 中鞋網
          這個可用嗎?  回復  更多評論
            


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 江达县| 苍南县| 桐庐县| 特克斯县| 柘城县| 隆化县| 德清县| 华安县| 玛沁县| 威信县| 出国| 永年县| 卫辉市| 从江县| 深泽县| 奎屯市| 巴南区| 浠水县| 沙洋县| 山阳县| 芷江| 安宁市| 恩平市| 民县| 浮梁县| 体育| 龙里县| 股票| 上林县| 临海市| 邹城市| 阿荣旗| 井研县| 高安市| 治多县| 曲周县| 明星| 莎车县| 青阳县| 清新县| 克拉玛依市|