static void populateLinker(ProjectItemDefinitionElement avar, bool isDebug)
 {
     if (!isDebug) {
         avar.AddMetadata("EnableCOMDATFolding", "true");
         avar.AddMetadata("OptimizeReferences", "true");
     }
     avar.AddMetadata("GenerateDebugInformation", isDebug.ToString().ToLower());
 }
 static void populateCompiler(ProjectItemDefinitionElement avar, bool isDebug)
 {
     if (!isDebug)
         avar.AddMetadata("FunctionLevelLinking", "true");
     avar.AddMetadata("PreprocessorDefinitions", (isDebug ? "_DEBUG" : "_NDEBUG") + ";_MBCS;%(PreprocessorDefinitions)");
     if (isDebug) {
         avar.AddMetadata("DebugInformationFormat", "ProgramDatabase");
         avar.AddMetadata("WarningLevel", "EnableAllWarnings");
     }
 }