c# - Parse custom build rules from Visual Studio C++ project -


i working on project revamp classic "makeitso" tool generate makefiles visual studio 2010 solution. updating work visual studio 2015, features different vcprojectengine api different.

i trying extract custom build rules each configuration programmatically:

using microsoft.visualstudio.vcprojectengine;      /// <summary>     /// parses 1 configuration custom build rule.     /// </summary>     private void parsecustombuildrule_configuration(vcfileconfiguration configuration, string relativepath) {         // find custom build rule configuration (if there one)...         ivcrulepropertystorage rule = configuration.tool ivcrulepropertystorage;         if (rule == null)             return;          // store info rule in custombuildruleinfo_cpp object...         custombuildrule ruleinfo = new custombuildrule();         ruleinfo.relativepathtofile = relativepath;          // there custom build rule, parse it...         ruleinfo.rulename = rule.getevaluatedpropertyvalue("name");         string commandline = rule.getevaluatedpropertyvalue("commandline"); 

unfortunately, rule.getevaluatedpropertyvalue("name") throwing exception stating property cannot found. getunevaluatedpropertyvalue("name") throws same error. "commandline" property throws error.

any ideas how solve this?


Comments

Popular posts from this blog

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -