An error occurred while trying to generate project files.
Running C:/Program Files/Epic Games/UE/UE_5.1/Engine/Build/BatchFiles/Build.bat -projectfiles -project=“D:/Unreal Projects/MyProject/MyProject.uproject” -game -rocket -progress
Running UnrealBuildTool: dotnet “…..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” -projectfiles -project=“D:/Unreal Projects/MyProject/MyProject.uproject” -game -rocket -progress
‘dotnet’ is not recognized as an internal or external command,
operable program or batch file.
How can I fix the above. I have uninstalled and reinstalled at new file path but no luck.