I have a solution with several projects that I have inherited from previous developers. I also have this problem, and I finally found out where it came from, so maybe this also happens with posters.
In my project setup, there are many source files referenced in the project. When Visual Studio determines the build order, it creates projects in parallel that are independent of each other. So it can happen that a file that is compiled in two separate projects is created at the same time, which can lead to blocking.
In my opinion, the links to the files in the project are evil. :) The correct way would be to put the shared files into the library and then install the dependencies accordingly. Theoretically, you can solve this problem by installing build dependencies for projects sharing files, but this is IMO, because projects may not have a significant dependency (as in my case), they just repeat using the same code.
In my case, I can sometimes create an entire solution without problems, and sometimes I have to restart it several times.
Another reason this can happen is that when the settings are such that some (intermediate) files are generated in the same folder, you must also check the settings.
Devolus
source share