private void LoadProjectTypeGuids(ProjectElement result, MsBuildProjectLoader msBuildLoader) { string projectTypeGuids = msBuildLoader.GetProperty(STR_ProjectTypeGuids); if (string.IsNullOrEmpty(projectTypeGuids)) { return; } result.SetProjectTypeGuids(projectTypeGuids); }
private void LoadProjectDefines(ProjectElement result, MsBuildProjectLoader msBuildLoader, string configuration, string platform) { string definesStr = string.Empty; if (string.IsNullOrEmpty(configuration) || string.IsNullOrEmpty(platform)) { definesStr = msBuildLoader.GetProperty(STR_DefineConstants); } else { definesStr = msBuildLoader.GetPropertyWithCondition(string.Format(" '$(Configuration)|$(Platform)' == '{0}|{1}' ", configuration, platform), STR_DefineConstants); } if (string.IsNullOrEmpty(definesStr)) { return; } result.SetDefines(definesStr.Split(CHAR_SemiColon)); }