KirillOsenkov / MSBuildStructuredLog

A logger for MSBuild that records a structured representation of executed targets, tasks, property and item values.
MIT License
1.46k stars 198 forks source link

Conflicting type ProjectEvaluationFinishedEventArgs #521

Closed daveaglick closed 3 years ago

daveaglick commented 3 years ago

This looks related to #197 and is similar to #196, though ProjectEvaluationFinishedEventArgs wasn't covered by that earlier work. I suspect that types are continuing to bleed from this project to MSBuild and as a result, ones that were safe and not duplicated a year or two ago are now exhibiting the same problems as previous types.

In this case I'm hitting issues with ProjectEvaluationFinishedEventArgs:

image

Here are my relevant package references in case it helps:

<PackageReference Include="Microsoft.Build" Version="16.10.0">
  <NoWarn>NU1701</NoWarn>
</PackageReference>
<PackageReference Include="Microsoft.Build.Framework" Version="16.10.0">
  <NoWarn>NU1701</NoWarn>
</PackageReference>
<PackageReference Include="Microsoft.Build.Tasks.Core" Version="16.10.0">
  <NoWarn>NU1701</NoWarn>
</PackageReference>
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="16.10.0">
  <NoWarn>NU1701</NoWarn>
</PackageReference>
<PackageReference Include="MSBuild.StructuredLogger" Version="2.1.507" />
KirillOsenkov commented 3 years ago

I've published https://www.nuget.org/packages/MSBuild.StructuredLogger/2.1.545, could you try it and let me know if this works as expected?

daveaglick commented 3 years ago

Was able to easily remove the extern alias and everything still works great. Thanks!