Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ private async Task ProcessTargetStack(ITaskBuilder taskBuilder)
// Execute all of the tasks on this target.
MSBuildEventSource.Log.TargetStart(currentTargetEntry.Name);
await currentTargetEntry.ExecuteTarget(taskBuilder, _requestEntry, _projectLoggingContext, _cancellationToken);
MSBuildEventSource.Log.TargetStop(currentTargetEntry.Name);
MSBuildEventSource.Log.TargetStop(currentTargetEntry.Name, currentTargetEntry.Result?.ResultCode.ToString() ?? string.Empty);
}

break;
Expand Down
7 changes: 4 additions & 3 deletions src/Framework/MSBuildEventSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -362,10 +362,11 @@ public void TargetStart(string targetName)
}

/// <param name="targetName">The name of the target being executed.</param>
[Event(44, Keywords = Keywords.All | Keywords.PerformanceLog)]
public void TargetStop(string targetName)
/// <param name="result">Target stop result.</param>
[Event(44, Keywords = Keywords.All | Keywords.PerformanceLog, Version = 1)]
public void TargetStop(string targetName, string result)
{
WriteEvent(44, targetName);
WriteEvent(44, targetName, result);
}

/// <summary>
Expand Down