dotnet/msbuild

Consider blocking TaskLoggingHelper use after its task ends

Opened this issue · 1 comments

see #4792 (comment) and the rest of that thread

If you hold onto a TaskLoggingHelper object (perhaps in a static field) past the lifetime of the Task that created it, it will throw when it is used.

We could instead dispose of it and provide a nicer error at time of use.