Unreal incompatible with Visual Studio 2017 15.5.2

I must’ve reinstalled visual studio 3 times, none of which worked.
Finally I tried this:

Seems this is rather a visual studio problem where some cache could get broken.

And then it worked after a reboot.