VS & UE4 - Class UObject has no members (etc.)


Fresh Windows 10 machine with UE 4.20 and VS 15.8.0.
In short, for me, UE with VS doesn’t work out of the box yet seems fine with XCode.

As per screenshots, its not resolving generated files and complaining UObject has no members.I’d like to know what I’ve done wrong or if there is an issue.

Created new UE project,
added GameModeBase,
added C++ Character class

When VS Opens it first complains about not being able to find any .generated files.
So, my approach has been to go to Project Properties and add a line such as:
C:\Users\Documents\Unreal Projects\MyProject3\Intermediate\Build\Win64\UE4Editor\Inc\MyProject3
But all this messing about doesn’t seem right. I was expecting when UE created the VS project, added the code for a Character Class it would resolve all the dependencies.

Any clues as to what is going wrong here?
Many thanks

There is (or was) a known issue with generated header files:

The fix is meant to be included in v4.20.2.

I think that is the problem. Your project should build without problem though.