'Generate Visual Studio Project Files' Fails Silently

When I do a fresh clone of my project and try to “Generate Visual Studio Project Files” it fails silently. I have no idea what’s happening. It shows the progress bar “Generating Project Files…” which then shortly disappears and no files where generated. None of the other fixes have worked for me.