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); } }
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); } }
public void SetProjectProperty(string propertyName, _PersistStorageType storageType, string propertyValue, string condition) { SetProjectProperty(propertyName, storageType, propertyValue, condition, false); }