Beispiel #1
0
        internal override void Evaluate(MSBuildEvaluationContext context)
        {
            if (!string.IsNullOrEmpty(Condition))
            {
                string cond;
                if (!context.Evaluate(Condition, out cond))
                {
                    // The condition could not be evaluated. Clear all properties that this group defines
                    // since we don't know if they will have a value or not
                    foreach (var prop in Properties)
                    {
                        context.ClearPropertyValue(prop.Name);
                    }
                    return;
                }
                if (!ConditionParser.ParseAndEvaluate(cond, context))
                {
                    return;
                }
            }

            foreach (var prop in propertyList)
            {
                prop.Evaluate(context);
            }
        }
Beispiel #2
0
 internal override void Evaluate(MSBuildEvaluationContext context)
 {
     foreach (var item in Items)
     {
         item.Evaluate(context);
     }
 }
Beispiel #3
0
        internal override void Evaluate(MSBuildEvaluationContext context)
        {
            EvaluatedElement = null;

            if (!string.IsNullOrEmpty(Condition))
            {
                string cond;
                if (!context.Evaluate(Condition, out cond))
                {
                    // The value could not be evaluated, so if there is an existing value, it is not valid anymore
                    context.ClearPropertyValue(Name);
                    return;
                }
                if (!ConditionParser.ParseAndEvaluate(cond, context))
                {
                    return;
                }
            }

            XmlElement elem;

            if (context.Evaluate(Element, out elem))
            {
                EvaluatedElement = elem;
                context.SetPropertyValue(Name, GetValue());
            }
            else
            {
                // The value could not be evaluated, so if there is an existing value, it is not valid anymore
                context.ClearPropertyValue(Name);
            }
        }
Beispiel #4
0
 public void Evaluate(MSBuildEvaluationContext context)
 {
     context.InitEvaluation(this);
     foreach (var pg in PropertyGroups)
     {
         pg.Evaluate(context);
     }
     foreach (var pg in ItemGroups)
     {
         pg.Evaluate(context);
     }
 }
Beispiel #5
0
        public void Evaluate()
        {
            MSBuildEvaluationContext context = new MSBuildEvaluationContext(this);

            foreach (var pg in PropertyGroups)
            {
                pg.Evaluate(context);
            }
            foreach (var pg in ItemGroups)
            {
                pg.Evaluate(context);
            }
        }
Beispiel #6
0
        internal override void Evaluate(MSBuildEvaluationContext context)
        {
            XmlElement elem;

            if (context.Evaluate(Element, out elem))
            {
                EvaluatedElement = elem;
            }
            else
            {
                EvaluatedElement = null;
            }
        }
Beispiel #7
0
 internal virtual void Evaluate(MSBuildEvaluationContext context)
 {
 }
Beispiel #8
0
		internal override void Evaluate (MSBuildEvaluationContext context)
		{
			XmlElement elem;
			if (context.Evaluate (Element, out elem))
				EvaluatedElement = elem;
			else
				EvaluatedElement = null;
		}
Beispiel #9
0
		internal override void Evaluate (MSBuildEvaluationContext context)
		{
			foreach (var item in Items)
				item.Evaluate (context);
		}
Beispiel #10
0
		internal override void Evaluate (MSBuildEvaluationContext context)
		{
			if (!string.IsNullOrEmpty (Condition)) {
				string cond;
				if (!context.Evaluate (Condition, out cond)) {
					// The condition could not be evaluated. Clear all properties that this group defines
					// since we don't know if they will have a value or not
					foreach (var prop in Properties)
						context.ClearPropertyValue (prop.Name);
					return;
				}
				if (!ConditionParser.ParseAndEvaluate (cond, context))
					return;
			}

			foreach (var prop in propertyList)
				prop.Evaluate (context);
		}
Beispiel #11
0
		internal override void Evaluate (MSBuildEvaluationContext context)
		{
			EvaluatedElement = null;

			if (!string.IsNullOrEmpty (Condition)) {
				string cond;
				if (!context.Evaluate (Condition, out cond)) {
					// The value could not be evaluated, so if there is an existing value, it is not valid anymore
					context.ClearPropertyValue (Name);
					return;
				}
				if (!ConditionParser.ParseAndEvaluate (cond, context))
					return;
			}

			XmlElement elem;

			if (context.Evaluate (Element, out elem)) {
				EvaluatedElement = elem;
				context.SetPropertyValue (Name, GetValue ());
			} else {
				// The value could not be evaluated, so if there is an existing value, it is not valid anymore
				context.ClearPropertyValue (Name);
			}
		}
Beispiel #12
0
		internal virtual void Evaluate (MSBuildEvaluationContext context)
		{
		}
Beispiel #13
0
		public void Evaluate (MSBuildEvaluationContext context)
		{
			context.InitEvaluation (this);
			foreach (var pg in PropertyGroups)
				pg.Evaluate (context);
			foreach (var pg in ItemGroups)
				pg.Evaluate (context);
		}
Beispiel #14
0
		public void Evaluate ()
		{
			MSBuildEvaluationContext context = new MSBuildEvaluationContext (this);
			foreach (var pg in PropertyGroups)
				pg.Evaluate (context);
			foreach (var pg in ItemGroups)
				pg.Evaluate (context);
		}