I can't create C++ projects in Unreal 5.1

Hi!

I can only create projects in version 4 of Unreal, when I try to create the project in the latest version, (in my case Unreal 5.1), the following error appears:


An error occurred while trying to generate project files.

Running E:/Program Files/Epic Games/UE_5.1/Engine/Build/BatchFiles/Build.bat -projectfiles -project=“E:/ProjetosUnreal/ForTwo/ForTw
o.uproject” -game -rocket -progress
Running UnrealBuildTool: dotnet “…..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” -projectfiles -project=“E:/ProjetosUnreal/ForTwo/ForTwo.uproject” -game -rocket -progress
‘dotnet’ n? ? recognized as an internal command
or external, an operable program or a batch file.

I already modified my Visual Studio several times and nothing! If anyone has a solution, I’d be grateful! Thanks.

Note: Blueprint-type projects are generated normally.

1 Like

Same, download dotNet SDK, it fixes it.