How would i debug something like this?

The dotnet is not recognized message usually comes when the Windows SDK is missing (or the wrong version). When I had that, I had to restart Epic Games before Unreal Editor noticed that I now got the SDK.