BuildSettingMatchesConfiguration() публичный Метод

public BuildSettingMatchesConfiguration ( DubBuildSetting sett, MonoDevelop.Projects.ConfigurationSelector config ) : bool
sett DubBuildSetting
config MonoDevelop.Projects.ConfigurationSelector
Результат bool
Пример #1
0
        public void TryGetTargetFileProperties(DubProject prj, ConfigurationSelector configuration, ref string targetType, ref string targetName, ref string targetPath)
        {
            List <DubBuildSetting> l;

            if (TryGetValue(DubBuildSettings.TargetNameProperty, out l))
            {
                foreach (var sett in l)
                {
                    if (prj.BuildSettingMatchesConfiguration(sett, configuration))
                    {
                        targetName = sett.Values [0];
                    }
                }
            }

            if (TryGetValue(DubBuildSettings.TargetPathProperty, out l))
            {
                foreach (var sett in l)
                {
                    if (prj.BuildSettingMatchesConfiguration(sett, configuration))
                    {
                        targetPath = sett.Values [0];
                    }
                }
            }

            TryGetTargetTypeProperty(prj, configuration, ref targetType);
        }
Пример #2
0
        public void TryGetTargetTypeProperty(DubProject prj, ConfigurationSelector cfg, ref string targetType)
        {
            List <DubBuildSetting> l;

            if (TryGetValue(DubBuildSettings.TargetTypeProperty, out l))
            {
                foreach (var sett in l)
                {
                    if (prj.BuildSettingMatchesConfiguration(sett, cfg))
                    {
                        targetType = sett.Values [0];
                    }
                }
            }
        }