Skip to content

Commit

Permalink
Merge pull request #23249 from rainersigwald/dotnet-build-logging-IEv…
Browse files Browse the repository at this point in the history
…entSource4

Opt into IEventSource4
  • Loading branch information
marcpopMSFT authored Jan 5, 2022
2 parents 9fc1d29 + 87f924b commit 346cab2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Cli/dotnet/commands/dotnet-msbuild/MSBuildLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ public void Initialize(IEventSource eventSource, int nodeCount)

public void Initialize(IEventSource eventSource)
{
// Declare lack of dependency on having properties/items in ProjectStarted events
// (since this logger doesn't ever care about those events it's irrelevant)
if (eventSource is IEventSource4 eventSource4)
{
eventSource4.IncludeEvaluationPropertiesAndItems();
}

try
{
if (_telemetry != null && _telemetry.Enabled)
Expand Down

0 comments on commit 346cab2

Please sign in to comment.