Check Condition on task parameter before trying to apply it.
authorAtsushi Eno <atsushieno@veritas-vos-liberabit.com>
Wed, 27 Nov 2013 11:59:08 +0000 (20:59 +0900)
committerAtsushi Eno <atsushieno@veritas-vos-liberabit.com>
Fri, 29 Nov 2013 09:23:39 +0000 (18:23 +0900)
mcs/class/Microsoft.Build/Microsoft.Build.Internal/BuildEngine4.cs

index b259e7318b34177b7e0cf119d49cff3b300e8026..249ec4ea768edca0a78d6e1c7fb878b435b60b4f 100644 (file)
@@ -288,6 +288,8 @@ namespace Microsoft.Build.Internal
                                // Evaluate task output properties and items.
                                event_source.FireTaskFinished (this, new TaskFinishedEventArgs ("Task Finished", null, project.FullPath, ti.FullPath, ti.Name, true));
                                foreach (var to in ti.Outputs) {
+                                       if (!project.EvaluateCondition (to.Condition))
+                                               continue;
                                        var toItem = to as ProjectTaskOutputItemInstance;
                                        var toProp = to as ProjectTaskOutputPropertyInstance;
                                        string taskParameter = toItem != null ? toItem.TaskParameter : toProp.TaskParameter;