Randome compiler error, when build project

Thsi has being bothering me for some, time.
I have search teh forum, and the internet, and all I have found is erroneous information.
Spatially form those Google and Microsoft AI generate answer that could not be more wrong.
It seem that teh AI generate an erroneous answer, and that get copied to all other links. as if it was the answer.

Could not copy "C:\Development\UnrealEngine\Engine\Source\Programs\Shared\EpicGames.IoHash\bin\Debug\net6.0\EpicGames.IoHash.dll" to "..\..\..\Binaries\DotNET\UnrealBuildTool\EpicGames.IoHash.dll". Beginning retry 1 in 1000ms. The process cannot access the file '..\..\..\Binaries\DotNET\UnrealBuildTool\EpicGames.IoHash.dll' because it is being used by another process. The file is locked by: ".NET Host (1332)"
Could not copy "C:\Development\UnrealEngine\Engine\Source\Programs\Shared\EpicGames.OIDC\bin\Debug\net6.0\EpicGames.OIDC.dll" to "..\..\..\Binaries\DotNET\UnrealBuildTool\EpicGames.OIDC.dll". Beginning retry 1 in 1000ms. The process cannot access the file '..\..\..\Binaries\DotNET\UnrealBuildTool\EpicGames.OIDC.dll' because it is being used by another process. The file is locked by: ".NET Host (1332)"
Could not copy "C:\Development\UnrealEngine\Engine\Source\Programs\Shared\EpicGames.Build\bin\Debug\net6.0\EpicGames.Build.dll" to "..\..\..\Binaries\DotNET\UnrealBuildTool\EpicGames.Build.dll". Beginning retry 1 in 1000ms. The process cannot access the file '..\..\..\Binaries\DotNET\UnrealBuildTool\EpicGames.Build.dll' because it is being used by another process. The file is locked by: ".NET Host (1332)"
Could not copy "C:\Development\UnrealEngine\Engine\Source\Programs\Shared\EpicGames.Horde\bin\Debug\net6.0\EpicGames.Horde.dll" to "..\..\..\Binaries\DotNET\UnrealBuildTool\EpicGames.Horde.dll". Beginning retry 1 in 1000ms. The process cannot access the file '..\..\..\Binaries\DotNET\UnrealBuildTool\EpicGames.Horde.dll' because it is being used by another process. The file is locked by: ".NET Host (1332)"
Could not copy "C:\Development\UnrealEngine\Engine\Source\Programs\Shared\EpicGames.Core\bin\Debug\net6.0\EpicGames.Core.dll" to "..\..\..\Binaries\DotNET\UnrealBuildTool\EpicGames.Core.dll". Beginning retry 1 in 1000ms. The process cannot access the file '..\..\..\Binaries\DotNET\UnrealBuildTool\EpicGames.Core.dll' because it is being used by another process. The file is locked by: ".NET Host (1332)"
...
...
Could not copy "C:\Development\UnrealEngine\Engine\Source\Programs\Shared\EpicGames.UBA\bin\Debug\net6.0\EpicGames.UBA.dll" to "..\..\..\Binaries\DotNET\UnrealBuildTool\EpicGames.UBA.dll". Beginning retry 5 in 1000ms. The process cannot access the file '..\..\..\Binaries\DotNET\UnrealBuildTool\EpicGames.UBA.dll' because it is being used by another process. The file is locked by: "dotnet.exe (1332)"
Could not copy "C:\Development\UnrealEngine\Engine\Source\Programs\Shared\EpicGames.Horde\bin\Debug\net6.0\EpicGames.Horde.dll" to "..\..\..\Binaries\DotNET\UnrealBuildTool\EpicGames.Horde.dll". Beginning retry 5 in 1000ms. The process cannot access the file '..\..\..\Binaries\DotNET\UnrealBuildTool\EpicGames.Horde.dll' because it is being used by another process. The file is locked by: "dotnet.exe (1332)"

Anyway, does any one knwo what causes this?
all it does is that take a while to build, give the error, and you have to try again, some time although rare, it does more than one in a roll.

and will build time so long, this is no pleasant.

THanks.

Greetings @JulioJerez

I’ve saw that occur before in VS and you could swap into debug and back to release to fix it. I haven’t ran into it in UE before, though. Are you getting this in UE?

1 Like

unreal 5.4.4
visual studio 2022.
everything is up today.

This worked for me. Only God knows why.

When it comes to fixing bugs/issues irony is a sneaky opponent. :smile: I’m glad it fixed it for you!