This happens randomly when trying to compile a fairly large solution with only a few dozen csprojs referencing the particular dll that fails to copy.
<ItemGroup>
<Reference Include="SomeLabrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\..\..\lib\some-library.dll</HintPath>
</Reference>
</ItemGroup>
My question is, How do I tell the dotnet compiler to not copy this library, or do it once, or compare it before copying or don't lock the file in a Linux system? Ah, sanity, I miss thee.