I get the following error when trying to create a new Unreal Engine 5 project.
An error occurred while trying to generate project files. Running D:/Apps/Epic Games/UE_5.0EA/Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.exe -projectfiles -project="D:/HD/Projects/Unreal Projects/AtlanticaWorlds/AtlanticaWorlds.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:\Apps\Epic Games\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: - https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=win10-x64
Installing .NET 5.0 didn’t work.
Repairing .NET 5.0 didn’t work.
Installing .NET Core 3.1.15 didn’t work either.
Unreal Engine is installed on the D drive instead of the C drive. Could this be causing this issue?
The [D:\Apps\Epic Games\UE_5.0EA\Engine\Binaries\DotNET\UnrealBuildTool] directory does have “UnrealBuildTool.exe” present.
I confirmed that the [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] directory has both the 3.1.15 and 5.0.6 subdirectories.
The “dotnet” registry directory is missing in [Computer\HKEY_LOCAL_MACHINE\SOFTWARE].
I’ve been getting this error while trying to create a C++ game project for PCs.
I tried creating a Blueprint project and it seems to work just fine.
I still need a C++ project for my game.
Does anyone know how to convert a UE5 Blueprint project into a C++ project? This could be my workaround.