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 阅读(2576) 评论(2)  编辑  收藏 所属分类: Windows

评论

# re: 在VS 2010中添加C++目录的方法 2011-08-15 15:03 中鞋网
这个不错  回复  更多评论
  

# re: 在VS 2010中添加C++目录的方法 2011-08-15 15:10 中鞋网
这个可用吗?  回复  更多评论
  


只有注册用户登录后才能发表评论。


网站导航: