Unreal engine: A fatal error occurred. The required library hostfxr.dll could not be found.

Unreal engine 5でC++のプロジェクトを作ろうとして以下のエラーが表示されたら.Netのコンポーネントがインストールされていないのが原因である。


 An error occurred while trying to generate project files.

Running C:/Program Files/Epic Games/UE_5.0/Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.exe  -projectfiles -project="C:/Users/[User name]/Documents/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 [C:\Program Files\Epic Games\UE_5.0\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


Visual Studio 2019 Installer Options:



コメント

このブログの人気の投稿

日本でコンピュータサイエンスを学ぶ難しさ

How to preview nif file on the ubuntu.