amis92 / RecordGenerator

C# immutable records generator
https://amis92.github.io/RecordGenerator/
MIT License
72 stars 10 forks source link

Must hard coded text be used #35

Closed mwpowellhtx closed 6 years ago

mwpowellhtx commented 6 years ago

I see that there is a lot of hard coding for names and such going on. Is this necessary? Is it possible to carry with it a dependency on the base assembly? That is to at least have some access to the actual type names?

amis92 commented 6 years ago

I guess that Generators project could take dependency on Attributes project and I could use the nameof operator, but I think until one of the recent updates the CodeGeneration.Roslyn tool wasn't able to load any assemblies for generator's dependencies, just the generator itself. Since that update it's possible to have any dependencies you'd like, so yeah, it may be a better way now.

mwpowellhtx commented 6 years ago

Good to know. I'll keep this in mind as I'm sifting through what I'd like my analyzers/generators to do and be about. Thanks! :+1: