net_automatic_interface icon indicating copy to clipboard operation
net_automatic_interface copied to clipboard

Split the Interface Building functionality into separate project/package.

Open mohummedibrahim opened this issue 1 year ago • 1 comments

Hi @ChristianSauer, thanks for building this amazing source generator library.

I'm wondering if it would be possible to split the generator project and separate the interface-building functionality on its own? So the other source generators can also benefit from this.

I see there're a couple of issues with having the source generator depend on another library/project (e.g. https://github.com/dotnet/roslyn/discussions/47517#discussioncomment-64145)

If that's something you're willing to accept, please let me know, and I can create an initial PR.

Thanks again!

mohummedibrahim avatar Mar 06 '24 15:03 mohummedibrahim

I am not opposed, but why want you do it? The interface building is really primitive, I've only used it because doing it right (i.e. building it by using the csharp compilationunit) is super annoying and too much for my use case. What do you want to use it for?

ChristianSauer avatar Mar 19 '24 09:03 ChristianSauer