Git is breaking compile?

Hi, I had a similar issue and it turned out that I deleted the ProjectEditor.Target.cs file. I missed this because there was a wrongly named *.Target.cs file instead, which was omitted by UBT. This might be the cause for your problem.

What I did to solve this is to create a new project and compare the contents of the Source folder with my actual project.

I hope this helps.