I’m getting this same issue (missing InputCoreTypes.generated.h error) when attempting to compile a dedicated server with a binary engine. Going to try compiling from source next.
I also tried copying InputCoreTypes.generated.h from Engine\Intermediate\Build\Win64\UE4\Inc\InputCore into Engine\Source\Runtime\InputCore\Classes and the error was resolved… but it just moved onto the next missing generated file, I tried a few before giving up. It appears all of those files exist under Engine\Intermediate* but they just aren’t properly linked or copied.