public void UnMerge(MSBuildPropertySet baseGrp, ISet <string> propertiesToExclude) { foreach (var g in groups) { g.UnMerge(baseGrp, propertiesToExclude); } }
public void UnMerge(MSBuildPropertySet baseGrp, ISet <string> propsToExclude) { foreach (MSBuildProperty prop in baseGrp.Properties) { if (propsToExclude == null || !propsToExclude.Contains(prop.Name)) { MSBuildProperty thisProp = this.GetProperty(prop.Name); if (thisProp != null && prop.Value.Equals(thisProp.Value, StringComparison.CurrentCultureIgnoreCase)) { this.RemoveProperty(prop.Name); } } } }
static string LoadProjectTypeGuids(string fileName) { MSBuildProject project = new MSBuildProject(); project.Load(fileName); MSBuildPropertySet globalGroup = project.GetGlobalPropertyGroup(); if (globalGroup == null) { return(null); } return(globalGroup.GetPropertyValue("ProjectTypeGuids")); }
public void UnMerge(MSBuildPropertySet baseGrp, ISet <string> propsToExclude) { foreach (MSBuildProperty prop in baseGrp.Properties) { if (propsToExclude != null && propsToExclude.Contains(prop.Name)) { continue; } MSBuildProperty thisProp = GetProperty(prop.Name); if (thisProp != null && prop.GetValue(true).Equals(thisProp.GetValue(true), StringComparison.OrdinalIgnoreCase)) { RemoveProperty(prop.Name); } } }
public void UnMerge (MSBuildPropertySet baseGrp, ISet<string> propsToExclude) { foreach (MSBuildProperty prop in baseGrp.Properties) { if (propsToExclude != null && propsToExclude.Contains (prop.Name)) continue; MSBuildProperty thisProp = GetProperty (prop.Name); if (thisProp != null && prop.GetValue (true).Equals (thisProp.GetValue (true), StringComparison.OrdinalIgnoreCase)) RemoveProperty (prop.Name); } }
public void UnMerge (MSBuildPropertySet baseGrp, ISet<string> propertiesToExclude) { foreach (var g in groups) { g.UnMerge (baseGrp, propertiesToExclude); } }
public void UnMerge (MSBuildPropertySet baseGrp) { foreach (MSBuildProperty prop in baseGrp.Properties) { MSBuildProperty thisProp = GetProperty (prop.Name); if (thisProp != null && prop.Value == thisProp.Value) RemoveProperty (prop.Name); } }
public void UnMerge (MSBuildPropertySet baseGrp) { foreach (var g in groups) { g.UnMerge (baseGrp); } }