Skip to content

Commit

Permalink
Merge pull request #23834 from dotnet/dev/kirillo/eventSource4
Browse files Browse the repository at this point in the history
Opt into IEventSource4
  • Loading branch information
marcpopMSFT authored Feb 9, 2022
2 parents 2e0d47e + 32f4dbc commit b3dfadc
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ public sealed class MSBuildForwardingLogger : IForwardingLogger

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();
}

// Only forward telemetry events
if (eventSource is IEventSource2 eventSource2)
{
Expand Down

0 comments on commit b3dfadc

Please sign in to comment.