I get this error when trying to create a new c++ project in UE5

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

I am able to create a blueprint project, It is only C++ projects to give me this error

Do you have the dotnet SDK needed for unreal builds installed?

I do yes. I will try reinstall it, Hopefully that works