do you have all the needed extra packs installed? (i dont remember what they are called so i went with packs). theres some additions things you have to install and they should have labels like unreal and game dev. i know theres some tutorials on it on youtube.
So, I can’t check my VS2017 right now, but I’m guessing that you have forgotten to check ‘UWP build tools’ in your installation.
Take a look at the second picture:
C++ for Universal Windows Platform… etc etc
Because Microsoft’s proprietary IDE does not need to support their own Universal Windows Platform…