can't start a c++ project

can someone help me out here im trying to start my first c++ project but it sust keeps giving me this error An error occurred while trying to generate project files.

Running D:/Epic Games/UE_5.0/Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.exe -projectfiles -project=“C:/Users/nicky/OneDrive/Documents/Unreal Projects/ai_testing/ai_testing.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:\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:

during the visual studio installation, you need to select all the proper .net core

*Other people has install the 3.1 but not sure if that gonna help just in case: Download .NET Core 3.1 Runtime