dotnet/msbuild

Consider blocking TaskLoggingHelper use after its task ends

Open

#4,828 建立於 2019年10月17日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)C# (1,364 fork)batch import
Area: Debuggabilityhelp wantedtriaged

倉庫指標

Star
 (5,062 star)
PR 合併指標
 (平均合併 11天 7小時) (30 天內合併 125 個 PR)

描述

see https://github.com/microsoft/msbuild/issues/4792#issuecomment-543336926 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.

貢獻者指南