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…