The required library hostfxr.dll does not contain the expected entry point. when executing Setup.bat of Unreal branch 5.5

Hi there,

After cloning the unreal branch 5.5 from github I got the following error when executing Setup.bat in the projects root directory:

PS C:\work\UnrealEngine\UE_5.5> .\Setup.bat
The required library C:\work\UnrealEngine\UE_5.5\Engine\Binaries\DotNET\GitDependencies\win-x64\hostfxr.dll does not contain the expected entry point.

I cloned with:

PS C:\work\UnrealEngine> git clone -b 5.5 --single-branch --recurse-submodules https://USERNAME@github.com/EpicGames/UnrealEngine.git ./UE_5.5

Any idea why this error arise?

Thank you for your help

Hello there @tsi6800!

Checking through the community, similar scenarios were encountered in other threads. The most succesful solution was to download and install DotNET 3.1 Download .NET Core 3.1 (Linux, macOS, and Windows) | .NET

For your scenario in particular, I would also suggest to delete and re-generate the files from GitDependencies folder, which includes hostfxr.dll

You can also check for more details in the following posts:

Installing DotNET 3.1 Download .NET Core 3.1 (Linux, macOS, and Windows) | .NET resolved this issue.

Thank you very much

1 Like