can open unreal engine in c++

Im trying to open a blank new c++ project but I keep getting this. How do I fix it?
An error occurred while trying to generate project files.

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

First, have you actually installed all the necessary pre-requisites, and made sure to re-start your computer and open Visual Studio manually once, to make sure all the settings are updated?

Second, there are tons of good hits when googling ‘dotnet’ is not recognized as an internal or external command, operable program or batch file – have you tried the suggestions that come up there?

For example, this link: