# Unreal Engine cannot make C++ games

**URL:** <https://forums.unrealengine.com/t/unreal-engine-cannot-make-c-games/616867>\
**Category:** C++\
**Tags:** unreal-engine, UE5-0, Blueprint, question\
**Created:** [July 29, 2022, 3:36am UTC](https://forums.unrealengine.com/t/unreal-engine-cannot-make-c-games/616867 "2022-07-29T03:36:16Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![NoobiouTaken](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NoobiouTaken](https://forums.unrealengine.com/u/NoobiouTaken)\
**Post date:** [July 29, 2022, 3:36am UTC](https://forums.unrealengine.com/t/unreal-engine-cannot-make-c-games/616867/1 "2022-07-29T03:36:16Z")

</div>

I am new to Unreal and for some reason I can only create blueprint games. Whenever I try to make a C++ game, this happens:

Running C:/Program Files/Epic Games/UE\_5.0/Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.exe -projectfiles -project=“C:/Users/aaron/Documents/Unreal Projects/Scripting/Scripting.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:

- [.NET Downloads (Linux, macOS, and Windows)](https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=win10-x64)

I don’t know why this is and I need help to fix it. Thank you!

---

<div class="post-metadata">

**Author:** ![brucedeity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@brucedeity](https://forums.unrealengine.com/u/brucedeity)\
**Post date:** [July 29, 2022, 4:24am UTC](https://forums.unrealengine.com/t/unreal-engine-cannot-make-c-games/616867/2 "2022-07-29T04:24:28Z")

</div>

Open Epic Games and try to verify the bugged UE installation… maybe this works

---

<div class="post-metadata">

**Author:** ![Onoa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Onoa](https://forums.unrealengine.com/u/Onoa)\
**Post date:** [July 29, 2022, 5:32am UTC](https://forums.unrealengine.com/t/unreal-engine-cannot-make-c-games/616867/3 "2022-07-29T05:32:03Z")

</div>

Download and install: .NET Core 3.1 SDK x64

> **[Download .NET Core 3.1 SDK (v3.1.409) - Windows x64 Installer](https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/sdk-3.1.409-windows-x64-installer)**

---

<div class="post-metadata">

**Author:** ![NoobiouTaken](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NoobiouTaken](https://forums.unrealengine.com/u/NoobiouTaken)\
**Post date:** [July 29, 2022, 6:57pm UTC](https://forums.unrealengine.com/t/unreal-engine-cannot-make-c-games/616867/4 "2022-07-29T18:57:05Z")

</div>

I installed it, but now there is a new error message:

Running C:/Program Files/Epic Games/UE\_5.0/Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.exe -projectfiles -project=“C:/Users/aaron/Documents/Unreal Projects/Scripting/Scripting.uproject” -game -rocket -progress  
Log file: C:\Users\aaron\AppData\Local\UnrealBuildTool\Log\_GPF.txt

Some Platforms were skipped due to invalid SDK setup: IOS, Android, Linux, LinuxArm64, TVOS.  
See the log file for detailed information

Discovering modules, targets and source code for project…  
ERROR: Could not find NetFxSDK install dir; this will prevent SwarmInterface from installing. Install a version of .NET Framework SDK at 4.6.0 or higher.

---

<div class="post-metadata">

**Author:** ![Onoa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Onoa](https://forums.unrealengine.com/u/Onoa)\
**Post date:** [July 29, 2022, 8:16pm UTC](https://forums.unrealengine.com/t/unreal-engine-cannot-make-c-games/616867/5 "2022-07-29T20:16:06Z")

</div>

> [@NoobiouTaken](#):
>
> Install a version of .NET Framework SDK at 4.6.0 or higher.

Just realized something. Have you installed Visual Studio?

If not. I suggest having a look at this documentation and following the installation steps:

> **[Setting Up Visual Studio](https://docs.unrealengine.com/5.0/en-US/setting-up-visual-studio-development-environment-for-cplusplus-projects-in-unreal-engine/)**
>
> Tips, tricks, and techniques for setting up Visual Studio to work with Unreal Engine

(For UE4, but still relevant to UE5)

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/3/4/234deb3ed99b003b9d7606ca9c6dc79ea8f14245.jpeg "install a version of .net framework sdk at 4.6.0 or higher . unreal") ](https://www.youtube.com/watch?v=xFY4CV6dpbI)

---

<div class="post-metadata">

**Author:** ![NoobiouTaken](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NoobiouTaken](https://forums.unrealengine.com/u/NoobiouTaken)\
**Post date:** [July 30, 2022, 4:01am UTC](https://forums.unrealengine.com/t/unreal-engine-cannot-make-c-games/616867/6 "2022-07-30T04:01:40Z")

</div>

Thank you, this worked! I had visual studio but not in the correct directory

---

<div class="post-metadata">

**Author:** ![FRainH9978](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FRainH9978](https://forums.unrealengine.com/u/FRainH9978)\
**Post date:** [February 7, 2023, 11:56am UTC](https://forums.unrealengine.com/t/unreal-engine-cannot-make-c-games/616867/7 "2023-02-07T11:56:28Z")

</div>

I also have the same problem. The log says “Error while enumerating Visual Studio toolchains”, but i want to use ue5 with rider and i have already set the code editor to rider in settings. How can i fix it?

---

<div class="post-metadata">

**Author:** ![halfblue3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@halfblue3](https://forums.unrealengine.com/u/halfblue3)\
**Post date:** [May 29, 2023, 11:00am UTC](https://forums.unrealengine.com/t/unreal-engine-cannot-make-c-games/616867/8 "2023-05-29T11:00:02Z")

</div>

So here’s what happened to me, because Unreal seems to shows that it already supports Visual Studio 2022 based on the source editor dropdown, I picked that and set it as the default for the it. But that seems to be a lie. Because I thought I would just be needing VS Community 2022 after that change, I uninstalled all my other Visual Studio. But Unreal doesn’t like that. Right now with UE5, it seems to only know how to work with VS 2019, which was mentioned in here ([Setting Up Visual Studio for Unreal Engine | Unreal Engine Documentation](https://docs.unrealengine.com/4.26/en-US/ProductionPipelines/DevelopmentSetup/VisualStudioSetup/)). After the sad realization, I reinstalled VS 2019 and I can confirm that you really need a .NET Framework for Unreal to recognize your VS 2019. I’m not completely sure if you really need the Desktop development with C++ and UWP development, but you can skip that and UE would still recognize VS 2019. Afterwards, VS would give a warning that you might be missing some dependency(?) and clicking that warning would open Visual Studio Installer asking if you want to install those stuff.
