Unreal Engine 5 doesn't work

Ok so i moved to UE 5 and i get an error when creating a c++ project.

The error
Running Z:/UE_5.0EA/Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.exe -projectfiles -project=“C:/Users/gpro9/OneDrive/Documente/Unreal Projects/MyProject/MyProject.uproject” -game -rocket -progress
A fatal error occurred. The required library hostfxr.dll could not be found.
If this is a self-contained application, that library should exist in [Z:\UE_5.0EA\Engine\Binaries\DotNET\UnrealBuildTool].
If this is a framework-dependent application, install the runtime in the global location [C:\Program Files\dotnet] or use the DOTNET_ROOT environment variable to specify the runtime location or register the runtime location in [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x64\InstallLocation].

The .NET Core runtime can be found at:

And i don’t know how to fix it, i get that i need the .net core runtime but i already have it installed.
I have all the version of the .net core runtime but it still doesn’t work. Help?

I had this problem once. I think you need a specific version of the .NET Core. I’m pretty sure it was version 3.1.100. Here’s how to get it:

  1. Go to Download .NET Core 3.1 (Linux, macOS, and Windows)
  2. Scroll down to “3.1.0”
  3. Under “SDK 3.1.100” click on x64 under Windows.
  4. Run the installer.

Hope this helps!

hi @ProGamerRo, There is a thread about this problem. Specially a post gives a direct download for Windows Missing hostfxr.dll (.NET Core Runtime) When Creating a UE5 Project - Unreal Engine 5 Early Access / Feedback for Unreal Engine 5 Early Access - Unreal Engine Forums