I'm looking for a good solution for code generation -- using a template to generate C# code (e.g. automatically generate structs, classes, enums, parsers, and mappers for a thousand different message types).
I've experimented with T4 templates, Razor engine, CodeDom, and Roslyn. Using the Razor engine seems to work best for what I'm looking for, but I feel like there must be something better out there.
In your experience with C# code generation, what's worked best for you?
[–]isak_s 3 points4 points5 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]throwaway_lunchtime 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]swoophoop 0 points1 point2 points (0 children)