Unable to generate project files (error message below)

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:/unreal/ObstacleAssault/ObstacleAssault.uproject” -game -rocket -progress
Running UnrealBuildTool: dotnet “…..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” -projectfiles -project=“C:/unreal/ObstacleAssault/ObstacleAssault.uproject” -game -rocket -progress
‘dotnet’ is not recognized as an internal or external command,
operable program or batch file.

Going through a C++ tutorial and when trying to do “new c++ class” from the “tools” bar I get this error, as well as when I try “generate visual studio code project” from the “tools” bar.

In addition to this, if I exit the project after having tried to make a C++ class, and then try to reopen the project it tells me “module is missing or built with an older version” and when I try to rebuild it fails.

I’m pretty sure you don’t have all of the necessary components / libraries to build. I highly recommend taking a look at this video:

I am in the same course having the exact same problem. Did you ever figure this out?

I also can’t create a new UE5.1 C++ project. I actually get the same error @JerryBear16

Greetings @Valkyrie_Labs

Welcome back to the forums! Did you manage to resolve your issue with the ‘dotnet’ error? If not, I have saw some individuals resolve it by manually install the .NET Desktop Runtime. I can’t specifically recommend that as it isn’t drives provided by Epic. But, something to look into if you’re still having that issue. I hope this information helps!