When you installed VS2017 did you also install the extension ‘Game Development for games with C++’?
If not then go to your Visual Studio Installer, next to Visual Studio 2017 click modify and then check the box for Game Development with C++.
If you already have the above you could try resetting the project by deleting the Binaries, Build, Intermediate and Saved folders and then try generating the Visual Studio Project Files and opening the project again.