Cant build solution in visual studio (200+ errors)

Hello

I recently installed visual studio and must have done something wrong. I created a character controller c++ class in the editor and when i hit build solution in VS I get many errors. Also I see this unreal engine config screen with “issues detected in unreal engine config” note.

I have pictured the screen and some of the errors.

Thanks

Jack L