StefH / ProxyInterfaceSourceGenerator

This project uses Source Generation to generate an interface and a Proxy class for classes. This makes it possible to wrap external classes which do not have an interface, in a Proxy class which makes it easier to Mock and use Dependency Injection.
MIT License
39 stars 6 forks source link

IIncrementalGenerator vs ISourceGenerator #80

Open ignatandrei opened 1 month ago

ignatandrei commented 1 month ago

I maintain a list of Roslyn Source Code Generators at ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG

However, the source generators have been deprecated in favor of the new incremental generators , that allows better performance

See dotnet/roslyn@main/docs/features/incremental-generators.md

However this means passing from ISourceGenerator to IIncrementalGenerator

Could you do that ?

Thanks Andrei

StefH commented 1 month ago

I maintain a list of Roslyn Source Code Generators at ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG

Can you also include this one: https://github.com/StefH/FluentBuilder

However, the source generators have been deprecated in favor of the new incremental generators , that allows better performance

See dotnet/roslyn@main/docs/features/incremental-generators.md

However this means passing from ISourceGenerator to IIncrementalGenerator

I can do that, currently working on support for Generic Attributes, when that's finished, I'll make this change.


Thanks for the heads up!