C#C
C#4y ago
bakk

❔ Source code generator with reference to the main project

I have some methods in a project that I want to go through using reflection at compile time to generate some code for them. It seems like source code generators need to be in their own project(?), so I made a project for them in the same solution. The main project uses the generators project. Now, need to access the methods from the main project, but if I reference the main project from the generators project, I would get a circular dependency! Any idea how I would do this?
Was this page helpful?