I'm working on an extension that targets C++ projects. It needs to retrieve a list of IncludePaths for a project. In VS IDE, it's menu -> Project -> Properties -> Configuration properties -> C++ -> General -> Additional Include Directories. That's what I need to get programmatically in my extension.
I have a corresponding VCProject instance, I also have a VCConfiguration instance. Judging from the Automation Model Overview chart, the project and configuration both have a collection of properties. However, they don't seem to available. Neither VCConfiguration nor VCProject classes have any property collection, not even when I inspect the contents of VCConfiguration and VCProject objects at runtime.
MSDN docs also don't provide any insights. VCConfiguration interface has a property PropertySheets, but after examining it at runtime with the help of debugger I have determined it's not what I need.
P. S. If I could just get the value of Command Line property (Project -> Properties -> Configuration properties -> C++ -> Command Line), the list of arguments compiler will be called with for a given project - that's also fine by me, one can parse that string to get all include paths.