Pranav / David
Thanks for the info! That gives me some more perspective. I did see some copied areas (MvcCodeGenerator).
Is the intent to generate code that that will produce identical IL to what Razor templates use in a standard ASP.Net application using Razor? Or, are custom transformations also supported / included?
The tests I had trouble with were TemplateWithBaseTypeTest and TemplateTest. I shelved my changes and re-ran them just to be sure, and those were the two that errored.
I found the code where the CodeGeneratorOptions are used and set a few (IntentString, BlankLinesBetweenMembers, etc.), but the code formatting for these generated.vb files still seems to be off (extra lines, incorrect spacing).
Any thoughts on a library I could use to format them? Ideally, I'd like to invoke Visual Studio's FormatDocument on the generated vb file when it completes, but it seems like it may be impossible. I can get rid of the extra spacing using a Regex
replace in a Transformer, but I'd like to avoid writing potentially buggy code to adjust the tabbing and such.