From d107f7b4c04c632f5c36a22b35801c92af188417 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mariana=20Dematt=C3=A9?= Date: Mon, 29 Apr 2024 23:09:46 +0200 Subject: [PATCH] Changed after target parent from the parent of the parent --- src/Build/BackEnd/Components/RequestBuilder/TargetBuilder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Build/BackEnd/Components/RequestBuilder/TargetBuilder.cs b/src/Build/BackEnd/Components/RequestBuilder/TargetBuilder.cs index bb3f3c87d9e..95a03c04bd7 100644 --- a/src/Build/BackEnd/Components/RequestBuilder/TargetBuilder.cs +++ b/src/Build/BackEnd/Components/RequestBuilder/TargetBuilder.cs @@ -429,7 +429,7 @@ private async Task ProcessTargetStack(ITaskBuilder taskBuilder) // Push our after targets, if any. Our parent is the parent of the target after which we are running. IList afterTargets = _requestEntry.RequestConfiguration.Project.GetTargetsWhichRunAfter(currentTargetEntry.Name); - bool didPushTargets = await PushTargets(afterTargets, currentTargetEntry.ParentEntry, currentTargetEntry.Lookup, currentTargetEntry.ErrorTarget, currentTargetEntry.StopProcessingOnCompletion, TargetBuiltReason.AfterTargets); + bool didPushTargets = await PushTargets(afterTargets, currentTargetEntry, currentTargetEntry.Lookup, currentTargetEntry.ErrorTarget, currentTargetEntry.StopProcessingOnCompletion, TargetBuiltReason.AfterTargets); // If we have after targets, the last one to run will inherit the stopProcessing flag and we will reset ours. If we didn't push any targets, then we shouldn't clear the // flag because it means we are still on the bottom of this CallTarget stack.