Exemplo n.º 1
0
 void IMetadataProperty.SetValue(string value, bool preserveCase, bool mergeToMainGroup, MSBuildValueType valueType)
 {
     if (linkedProperty == null)
     {
         throw new InvalidOperationException("Evaluated property can't be modified");
     }
     linkedProperty.SetValue(value, preserveCase, mergeToMainGroup, valueType);
 }
        public void SetPropertyValue(string name, string value, bool preserveExistingCase)
        {
            MSBuildProperty p = GetProperty(name);

            if (p != null)
            {
                if (!preserveExistingCase || !string.Equals(value, p.Value, StringComparison.OrdinalIgnoreCase))
                {
                    p.SetValue(value);
                }
                return;
            }
            groups [0].SetValue(name, value, preserveExistingCase: preserveExistingCase);
        }