MSBuildStructuredLog icon indicating copy to clipboard operation
MSBuildStructuredLog copied to clipboard

DoubleWritesAnalyzer doesn't catch WriteLinesToFile

Open ericstj opened this issue 11 months ago • 2 comments

I noticed this in https://github.com/dotnet/sdk/issues/45842

WriteLinesToFile seems like an easy one to add. There might be other commonly used Tasks that could be added to the analysis.

ericstj avatar Jan 09 '25 23:01 ericstj

It's worth checking this against the built in Buildcheck for double writes as well.

Cc @JanKrivanek

baronfel avatar Jan 10 '25 00:01 baronfel

Yeah - there are couple others too: https://github.com/dotnet/msbuild/issues/10439

This didn't meet the top priority bar. I'll try to find some spare time to add support for those.

FYI @YuliiaKovalova - we might consider adding (or swapping in) sdk as one of the repos for getting the usability info https://github.com/dotnet/msbuild/issues/10726

JanKrivanek avatar Jan 10 '25 07:01 JanKrivanek