public void ReplacePreprocessorDefine( VCConfiguration cfg, string oldDef, string newDef ) { VCCLCompilerTool cl = (VCCLCompilerTool)cfg.Tools.Item("VCCLCompilerTool"); if (cl != null) { cl.PreprocessorDefinitions = cl.PreprocessorDefinitions.Replace(oldDef, newDef); } }