Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Evaluating project properties/macros for a VC++ project

$
0
0

Is there a way to get a IVsBuildMacroInfo for a VC++ project in order to evaluate project properties/macros?

I know for a C# project you can cast the IVsHierarchy for a project to IVsBuildMacroInfo but this doesn't work for a VC++ project.

I also know that VCConfiguration.Evaluate can be used for similar functionality in a VC++ project.  A drawback to this though is that I have an extension that works for multiple versions of Visual Studio and the VCProjectEngine COM interfaces are re-GUID'd for each version of Visual Studio.

It seems that if IVsBuildMacroInfo is supported somehow for VC++ projects that would be the best option.  Alternatively, are there other good options for evaluating project properties/macros in a VC++ project that work across multiple versions of Visaul Studio?


Viewing all articles
Browse latest Browse all 4410

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>