Clean install on new Windows - can't create a project ("'dotnet' is not recognized as an internal or external command")

  1. Clean Windows 10 64 bit.
  2. Installed VS 2019, .NET
  3. Can run “dotnet” from the command line.

Following error pops up when I am trying to create a new C++ project (UE 5.1.1):

An error occurred while trying to generate project files.

Running C:/Program Files/Epic Games/UE_5.1/Engine/Build/BatchFiles/Build.bat -projectfiles -project=“C:/Users/eostr/OneDrive/Documents/Unreal Projects/topdowncpp/topdowncpp.uproject” -game -rocket -progress
Running UnrealBuildTool: dotnet “…..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” -projectfiles -project=“C:/Users/eostr/OneDrive/Documents/Unreal Projects/topdowncpp/topdowncpp.uproject” -game -rocket -progress
‘dotnet’ is not recognized as an internal or external command,
operable program or batch file.

1 Like

Hi Euoss,

It’s good to know that you can run dotnet in the command line.

You might just need to restart your PC.

I’ve been linking this version of the .NET installer and it looks to be working for people.

Welcome to the Forums, please let me know if restarting or that version fixes it!

Thank you so much! One step closer to writing game of my dreams… I learned C++ for over 20 years for this :wink: