I think this implementation is kicking a new design-time build on each edit to the app.cs file. In follow-up PR we should probably make sure that a new design time build is only kicked if directives change, or if files that may be part of the project are added/removed, etc. Not for changes to ordinary source code, I think.
Originally posted by @RikkiGibson in #78488 (comment)