dotnet / dotnet/msbuild

Document thread-safety requirements on loggers

Open
#1,683 0 comments 0 reactions 0 assignees View on GitHub
Area: Documentation triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

As far as I can tell, MSBuild will always call logger methods from a single thread (either the dedicated logging thread when `LoggerMode.Asynchronous` or the engine thread), and it calls them one at a time, synchronously, and in order. But I don't see that in the [documentation for loggers](https://docs.microsoft.com/en-us/visualstudio/msbuild/build-loggers). There's a lot of talk of multi-**process** models but none about threading in the loggers themselves.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.