示例#1
0
        public void SetProjectProperty(string propertyName, _PersistStorageType storageType, string propertyValue, string condition, bool treatPropertyValueAsLiteral)
        {
            if (propertyValue == null)
            {
                propertyValue = string.Empty;
            }

            // see if the value is the same as what's already in the project so we
            // know whether to actually mark the project file dirty or not
            string oldValue = GetProjectProperty(propertyName, storageType, true);

            if (!String.Equals(oldValue, propertyValue, StringComparison.Ordinal))
            {
                if (treatPropertyValueAsLiteral)
                {
                    propertyValue = Escape(propertyValue);
                }

                SetPropertyUnderCondition(propertyName, storageType, condition, propertyValue);
            }
        }
示例#2
0
        public void SetProjectProperty(string propertyName, _PersistStorageType storageType, string propertyValue, string condition, bool treatPropertyValueAsLiteral)
        {
            if (propertyValue == null)
                propertyValue = string.Empty;

            // see if the value is the same as what's already in the project so we
            // know whether to actually mark the project file dirty or not
            string oldValue = GetProjectProperty(propertyName, storageType, true);

            if (!String.Equals(oldValue, propertyValue, StringComparison.Ordinal))
            {
                if (treatPropertyValueAsLiteral)
                    propertyValue = Escape(propertyValue);

                SetPropertyUnderCondition(propertyName, storageType, condition, propertyValue);
            }
        }
示例#3
0
 public void SetProjectProperty(string propertyName, _PersistStorageType storageType, string propertyValue, string condition)
 {
     SetProjectProperty(propertyName, storageType, propertyValue, condition, false);
 }
示例#4
0
 public void SetProjectProperty(string propertyName, _PersistStorageType storageType, string propertyValue, string condition)
 {
     SetProjectProperty(propertyName, storageType, propertyValue, condition, false);
 }