What I have learned from 80+ RSCG
I have analyzed more than 80 Roslyn Source Code Generators – see https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG . The conclusions are here:
- RSCG is here to stay . There are examples from Microsoft – and a bunch of other RSCG
- First version of RSCG was simple, but VS not performant. The second version is more difficult to implement – but VS is more happy
- There are many RSCG for the same thing – for example, generating constructors from fields / properties: https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#constructor . You have to test them like you test any dll
- Creating RSCG is difficult – you can add some errors to the code generated and/or warnings and/or more problems. I will put here my findings: https://ignatandrei.github.io/RSCG_Examples/v2/docs/GoodPractices
Leave a Reply