Similar to #1465, the UpdateAssemblyInfo and GenerateGitVersion targets, which write out the appropriate code classes and attributes, need to be done prior to MarkupCompilePass1. In addition, in order for them to be compiled into the pass, the files need to be added to the _GeneratedCodeFiles item list so they are added to the compile line.