UE5 C++ Error while trying to generate project

Hello, I wanted to create a C++ project but when I do it it gives me following error:


An error occurred while trying to generate project files.

Running D:/UE_5.0EA/Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.exe -projectfiles -project=“D:/UEProjects/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 [D:\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 understand what I need to do to fix it, can someone help me?

I believe you have to have the .NET in the source build before you can generate project files. Looks like they are missing… You may have to download them and rebuild the engine and then go for generating your project files then build out your project solution.