Unable to Compile From Source

Hello,

So i recently changed my version from 4.19 to 4.21 and i have the VS-UE and Win10 Kit modification installed. the errors are that

1-) it cant find .generated.h file
2-) some problem with the generated() tag which i assume is because it cant find .generated.h
3-) it says that TCHAR is invalid and there should be UClass() instead. which i also have already put before my Class declaration.

i also have already tried right clicking project and clicking generate files for vs. it doesnt give me any error.

here are the logs for both the version select(build with ue4) and the generate project files.

GenerateProjectFile

VersionSelect