Esempio n. 1
0
 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"));
        }
Esempio n. 4
0
 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);
         }
     }
 }
Esempio n. 5
0
		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);
			}
		}
Esempio n. 6
0
		public void UnMerge (MSBuildPropertySet baseGrp, ISet<string> propertiesToExclude)
		{
			foreach (var g in groups) {
				g.UnMerge (baseGrp, propertiesToExclude);
			}
		}
Esempio n. 7
0
		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);
			}
		}
Esempio n. 8
0
		public void UnMerge (MSBuildPropertySet baseGrp)
		{
			foreach (var g in groups) {
				g.UnMerge (baseGrp);
			}
		}