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

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -