T4 Code Generation missing in Visual Studio 2008?

家住魔仙堡 提交于 2019-12-02 12:13:30

Do you happen to use Visual Basic? T4 Toolbox only provides 4 project item templates for VB - File, Template, Generator and Unit Test. The other templates you may have seen in the tutorial screenshots are implemented in C# and generate C# code. It seemed inappropriate to make them available in Visual Basic projects.

Try just creating a text file and giving it a .tt extension. VS should recognize it right away. You may just be missing the template.

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