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

Alternative for deprecated VCPlatform.PlatformMacro[Int32]

$
0
0

Hi,

I want to write a VSX for Visual Studio 2015 where I want to show a dialog like the Command Arguments dialog in VC project configuration. (Click here for a screenshot) VS lists all the macros which are available plus the evaluated value. I'm looking for an API to fetch all macros. The only hint I was able to find is the VCPlatform.PlatformMacro Property but calling that property results in a NotImplementedException stating that the method is deprecated.

What is the recommended way to query these macros? I guess I need to switch to MSBuild but I couldn't find anything.

I'm referencing Microsoft.VisualStudio.VCProjectEngine v14.0.0.0. Right now I'm only care about VS2015 support.


Viewing all articles
Browse latest Browse all 4410

Trending Articles



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