The microsoft.bcl.build.tasks.dll is used by another process error is a symptom of MSBuild’s in-process assembly loading combined with parallel builds or filesystem interference. While immediate fixes involve serializing builds or adding antivirus exclusions, the long-term solution is to deprecate the old Microsoft.Bcl.Build package and adopt modern .NET tooling that respects file-sharing semantics.
If you cannot remove Microsoft.Bcl.Build due to deep legacy dependencies, alter its behavior to avoid locking. microsoft.bcl.build.tasks.dll is used by another process
Disable real-time scanning for your solution folder. The microsoft