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.

贡献者指南