It appears you didn't properly install visual studios.
When installing you need to do a custom installation and select the c++ compiler tools cause visual studios doesn't install them by default anymore.
Recently had an issue similar to this when compiling 6.x, reinstalling visual studios with C++ tools solved it.