Example #1
0
        /// <summary>
        /// Sets a build property to the given value in all build configurations.
        /// </summary>
        /// <param name="property">Property object instance.</param>
        public static void SetBuildProperty(XCodeProjectProperty property)
        {
            foreach (var p in XCodeProjectSettings.Instance.BuildProperties)
            {
                if (p.Name.Equals(property.Name))
                {
                    XCodeProjectSettings.Instance.BuildProperties.Remove(p);
                    break;
                }
            }

            XCodeProjectSettings.Instance.BuildProperties.Add(property);
        }
Example #2
0
 /// <summary>
 /// Removes the build property.
 /// </summary>
 /// <param name="property">Build property.</param>
 public static void RemoveBuildProperty(XCodeProjectProperty property)
 {
     RemoveBuildProperty(property.Name);
 }