LINK : fatal error LNK1168: cannot open \M3Server-Win64-DebugGame.exe for writing`
Deleting the appropriate .ilk works
closing the editor does not help,
restarting the IDE does not help either.
tasklist | findstr M3Server-Win64-DebugGame: nothing
ProcessExplorer: nothing
I reinstalled visual studio 2022 completely, but issue persists. Next I’d like to try using older ms build tools.
The kicker: I never actually launched the .exe
Then I started deleting related intermediate files in Binaries/Win64 and found that after deleting the appropriate .ilk (M3Server-Win64-DebugGame.ilk)
It linked just fine, regenerating the .ilk. And it works reliably.
Does not matter if I compile through visual studio or Engine\Build\BatchFiles\Build.bat.
This started happening somewhere along visual studio 2022 releases.
Anyone else having trouble with this?
EDIT: I just found that disabling UBA as explained here works just fine.
It seems like some unreal build tool related process is holding onto something