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 閱讀(2609) 評論(2)  編輯  收藏 所屬分類: Windows

          評論

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

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


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


          網站導航:
           
          主站蜘蛛池模板: 景谷| 洞口县| 阿鲁科尔沁旗| 崇左市| 龙口市| 兴隆县| 桂阳县| 都兰县| 马尔康县| 兴国县| 会昌县| 崇州市| 锦屏县| 新乐市| 科技| 花莲市| 石阡县| 陇川县| 新邵县| 浏阳市| 呼伦贝尔市| 东辽县| 沁源县| 三都| 玉山县| 丰宁| 彭山县| 武川县| 卓尼县| 信宜市| 阳城县| 怀集县| 马关县| 青河县| 吴江市| 马山县| 楚雄市| 昌都县| 岐山县| 永平县| 祥云县|