dotnet/msbuild

Consider blocking TaskLoggingHelper use after its task ends

Open

#4 828 ouverte le 17 oct. 2019

Voir sur GitHub
 (1 commentaire) (0 réactions) (0 assignés)C# (1 364 forks)batch import
Area: Debuggabilityhelp wantedtriaged

Métriques du dépôt

Stars
 (5 062 stars)
Métriques de merge PR
 (Merge moyen 11j 7h) (125 PRs mergées en 30 j)

Description

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.

Guide contributeur