Replies: 1 comment
-
As ISGs don't interact with each other, there is virtually no difference between how you would structure them in a single repo versus in multiple repos.
Standard .net logic applies here. If you have helper functions or types you want to use, do so.
Generators have no ordering concepts. We run them all, independently, against hte users code. Each generates code independently of the others. We then take all that generated code and recompile it with the users original code to make the final dll.
Incremental generators cannot interact. So there is no interaction to debug :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I’m exploring using more than one Incremental Source Generator in the same repository.
What are best practices for structuring them so that they don’t negatively impact build performance?
Are there recommended patterns for splitting logic, sharing common utilities, or ordering execution between generators?
Any tips on debugging interactions between them would also be helpful!
Beta Was this translation helpful? Give feedback.
All reactions