Building Unreal engine 5 from source is failing when running setup.bat

Im currently trying to build Unreal engine 5 from source since it will be required down the line in order to create dedicated servers for my networked project, but I am currently running into an infuriating bug that I cant seem to find a solid solution for. After I clone from my github fork of the Unreal engine project and switch over to my preferred release branch (5.2.1 currently). I go to run the first step of the build process via the documentation which is to run the setup.bat file, but when I run it, It instantly fails with this error.

Everything that I have found online related to this error doesn’t seem to point me in a direction that is yielding any meaningful result. It is telling me to check my .net pre-reqs, and just for clarity this is my current .net information.

Any help/steps to help me resolve this issue would be greatly appreciated.

Im officially going to mark this as resolved. My particular issue was directly being caused by a file permission problem with using cygwin and cygwin’s built in git package system. I removed the entire repository and recloned the source using git bash for windows and the permission issues with the hostfxr.dll and the rest of the repo were resolved.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.