LNK1104 and MSB307 occuring when building source 5.4.4 in VS2022

I’ve had a reoccurring issue when building Unreal version 5.4.4 / 5.4 from Source on VS Community 2022. I’m trying to build in debug game editor so I can generate symbols to debug the source.

When I build it succeeds the first time with the build, and is fully function, I can then open a project. I’ve been testing with the most rudimentary and basic project.

When I then build a second time from source, the UnrealEditor-Win64-DebugGame.exe is removed from the file repository, as to be replaced, but a memory related error occurs in VSPerf callstack.
Exception thrown at 0x00007FFF89EDFE4C in UnrealEditor-Win64-DebugGame.exe: Microsoft C++ exception: xSharedMemoryException at memory location 0x000000FA0D57E0A0.

This then causes a LNK1104 Error to occur because there is no longer a version of the UnrealEditor-Win64-DebugGame.exe available. Followed by an MSB307 error as it cannot successfully run the Build.bat with missing file.

Initially I was having this error occur I think because of the length of the path of the drive, then it would fail to even build the project and wouldn’t launch, and so I moved it do another drive with a shorter path name which allowed me to proceed to the aforementioned error. I have reinstalled a fresh version of Unreal, attempted this with 5.4 and 5.4.4, I’ve reinstalled VS2022 yet none of these changes seem to affect the result.

Hey,
I met with same issue and found a easy escape.

Solution 1:

Save and Close your VS2022

Open up your task manager and search for unreal. You will see Unreal Editor and some other unreal supportive applications running on background.

Close them and run your VS and try building now.

Solution 2:
If still the build fails delete “binaries”, “Saved”, “Intermediate” folders from your project folder.

Right click on your UE project file and click “Generate Visual Studio Project files”

You will notice those deleted folders getting created again.

Now open your VS and build solution.