Example #1
0
        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));
        }
        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));
        }