When using build-time generation, the first build fails as the newly generated .cs files are not added to the current compilation task.
Second build runs fine, which is the workaround I am currently using in my automation.
Interesting, thanks. I think this may have to do with not adding the new CS project as a element. I've also always checked in an empty .cs file for it to overwrite. Thanks for bringing this up.
When using build-time generation, the first build fails as the newly generated .cs files are not added to the current compilation task. Second build runs fine, which is the workaround I am currently using in my automation.