You need to install Visual Studio. This is different to Visual Studio Code.
https://visualstudio.microsoft.com/downloads/
Ensure that you select 'Desktop development with C++' and probably 'Mobile development with C++'