Broken asset references after moving the project / Sharing violation errors

Hello,

I had to put my project down for some time during which I had to reinstall my computer. Now I have the project at the original location but once I open it, it is full of sharing violation errors. It is on the drive with my previous system.

I tried to get my project from repo to another location, but when I run that, all my components are missing references to custom scripts.

So neither the old nor the new location is working, both for different reasons. In both cases metadata are intact (they were on repo), so that’s not it.

Does anyone has any idea what else could be wrong?

To add more info here, I am getting sharing violation errors on multiple dlls:

Copying assembly from ‘Temp/Unity.Entities.Hybrid.dll’ to ‘Library/ScriptAssemblies/Unity.Entities.Hybrid.dll’ failed. Detailed error: Sharing violation on path
(0,0): error System.IO.IOException: Sharing violation on path D:\InteligentDesigners\Temp\DataViewModel.dll
(0,0): error System.IO.IOException: Sharing violation on path D:\InteligentDesigners\Temp\Unity.RenderPipelines.Universal.Editor.dll

From what I found on the forums this can happen on certain drives ( Build on external disk "Fatal error in Unity CIL Linker" ), but I tried it on three different ones (SSD, M2, HDD, all internal and NTFS).

In general from what I gathered this error should appear when trying to open a write stream on a file that is already used by another write stream. I have only a singular instance of editor opened. I have restarted both editor and computer many times. There’s nothing obvious that could be using those files other than editor. It is not even source controlled on current location.

Clearing Temp and Library folders didn’t help.