Skip to content

Commit bff8a4e

Browse files
committed
Work around BuildEventContext issue
1 parent 3be6cbf commit bff8a4e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/Build/BuildCheck/Infrastructure/BuildEventsProcessor.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,11 @@ private static void ReportResult(
200200
}
201201

202202
BuildEventArgs eventArgs = result.ToEventArgs(config.Severity);
203-
eventArgs.BuildEventContext = loggingContext.BuildEventContext;
203+
204+
// TODO: This is a workaround for https://github.com/dotnet/msbuild/issues/10176
205+
// eventArgs.BuildEventContext = loggingContext.BuildEventContext;
206+
eventArgs.BuildEventContext = BuildEventContext.Invalid;
207+
204208
loggingContext.LogBuildEvent(eventArgs);
205209
}
206210
}

0 commit comments

Comments
 (0)