diff --git a/src/app/Fake.Core.Trace/Trace.fs b/src/app/Fake.Core.Trace/Trace.fs index 1deeedd97e5..38f22d8d866 100644 --- a/src/app/Fake.Core.Trace/Trace.fs +++ b/src/app/Fake.Core.Trace/Trace.fs @@ -181,9 +181,8 @@ let setBuildNumber number = let closeAllOpenTags() = Seq.iter (fun (_, tag) -> closeTagUnsafeEx TagStatus.Failed tag) openTags.Value /// Traces the begin of a target -let traceStartTargetUnsafe name description dependencyString = +let traceStartTargetUnsafe name description (dependencyString:string) = openTagUnsafe (KnownTags.Target name) description - if not (isNull description) then tracefn " %s" description /// Traces the begin of a target [] diff --git a/src/app/Fake.Core.Trace/TraceListener.fs b/src/app/Fake.Core.Trace/TraceListener.fs index 9dc67a80a3e..49fae4340f9 100644 --- a/src/app/Fake.Core.Trace/TraceListener.fs +++ b/src/app/Fake.Core.Trace/TraceListener.fs @@ -239,6 +239,12 @@ type ConsoleTraceListener(importantMessagesToStdErr, colorMap, ansiColor) = write importantMessagesToStdErr color true text | TraceData.LogMessage(text, newLine) | TraceData.TraceMessage(text, newLine) -> write false color newLine text + | TraceData.OpenTag(KnownTags.Target _ as tag, description) -> + write false color true (sprintf "Starting %s '%s'" tag.Type tag.Name) + if not (isNull description) then + let msg = TraceData.TraceMessage("", true) + let color2 = colorMap msg + write false color2 true (sprintf " %s" description) | TraceData.OpenTag (tag, descr) -> write false color true (sprintf "Starting %s '%s': %s" tag.Type tag.Name descr) | TraceData.CloseTag (tag, time, status) ->