IOException: Sharing violation on path with UnityEngine.~~~.dll

Hi. I’m suffering with build error.

This is my error log.

IOException: Sharing violation on path {Project Path}\Temp\StagingArea\Data\Managed*.dll
System.IO.FileStream…ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) (at -----

Managed/*.dll file is change everytime when I build project.
I can’t understand why this problem is happen, and I wundering solve this.

Build error isn’t happen always.
Sometimes, project builded succeed…

Is this something problem with package?

Thanks.

Did you ever solve this I have the same issue with Managed/tempStrip/UnityEngine.dll.mdb

This solved it for me

If anyone’s having this issue, restarting unity fixed it for me.