Fatal Error When I Create a C++ Project

When I create a new c++ project I get this:

your visual studio what do you have installed? the FAILED TO PRODUCE error is normally from something failing to compiling or something needed to compile wasn’t there to do the work.

review all of these steps and try again.

I fixed this a while ago but thought I give my solution to anyone who might run into this problem. I simply uninstalled every instance of any visual studios version on my computer (I had 2013, 2015 and 2017 installed) and deleted all their corresponding files then only installed the version I need (2017).