VS2012:获取“其他包含目录"从Addin的VCProject [英] VS2012: Get "Additional Include Directories" from VCProject in Addin
问题描述
我想获取实际的其他包含目录"从我的Visual Studio 2012外接程序中进行活动配置.使用调试器,我发现我可以从VCProjectEngine获取属性表,该属性表可能包含这些信息,但这 不推荐使用该属性,无法访问该属性.在VS2012插件中获取此信息的正确方法是什么?
I want to get the actual "Additional Include Directories" from my Visual Studio 2012 addin for the active configuration. Using the debugger, I found that I could get property sheets from VCProjectEngine, which might have contained the information, but this property is deprecated and cannot be accessed. What is the correct way to get this information in a VS2012 addin?
先谢谢了,
克里斯多夫(Christoph)
Thanks in advance,
Christoph
推荐答案
克里斯托弗,
使用VS 2012,您可以通过IVCRulePropertyStorage获得各种目录设置.我对这篇文章的回复中有一个例子:
With VS 2012 you can get at the various directory settings via IVCRulePropertyStorage. I have an example of this in my response to this post:
AddWinRTReference和CanAddWinRTReference
AddWinRTReference and CanAddWinRTReference
此致
这篇关于VS2012:获取“其他包含目录"从Addin的VCProject的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!