T4 with languages other than C# and VB

喜欢而已 提交于 2019-12-22 12:23:33

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!