Open joelverhagen opened 1 week ago
Great to hear that you like it!
What solution would you recommend? It is conceivable that the generator could just suffix the class name with an identifier deriving from the name of the assembly, but I'm wondering if there's a better way.
I can think of three options:
I am not sure if existing users of the library expect the shape provider to be called ShapeProvider
. If so, option 1 would need to be opt-in (or enabled only when InternalsVisibleTo is detected).
Suppose project ConsoleApp2 depends on project ConsoleApp1 Project ConsoleApp1 depends on PolyType. Project ConsoleApp1 has
[assembly:InternalsVisibleTo("ConsoleApp2")]
.This means the following type is duplicate in ConsoleApp2's build:
Love the look of the project BTW! I have been building my own CSV and Kusto source generator from POCO for a while. This might be a fun project to simplify with.