unreal engine generating error when i use c++

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

Open your Visual Studio Installer. Click modify on your Visual Studio installation. Check if you have “Game development with C++” installed.

You need this even if you use something like Rider or VSCode.

You may also need to install .NET SDK and .NET 6.0 Runtime under “Individual Components”