问题
Is it posible to write T4 templates in other .NET languages? In particular I'm interested in F# and IronPython.
回答1:
The doc stipulates that only VB and C# are supported: T4 Template Directive, see the language
attribute.
回答2:
I was complaining about this on twitter some time ago. It seems reasonable - afterall, T4 is just using CodeDOM provider! Anyway, Michael Hutchinson (from Mono team) suggested using the implementation in Mono, which should be extensible.
I didn't look into that further, but I think it may be a way to go...
来源:https://stackoverflow.com/questions/6289972/t4-with-languages-other-than-c-sharp-and-vb