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:

  1. RSCG is here to stay . There are examples from Microsoft  – and a bunch of other RSCG
  2. First version of RSCG was simple, but VS not performant. The second version is more difficult to implement – but VS is more happy
  3. 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
  4. 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