Does VS 2010 Express edition support T4 preprocessed templates?

限于喜欢 提交于 2019-11-29 03:50:44

Unfortunately the item templates got a little misconfigured in our setup program for VS Express editions and are not in the right place on disk, so don't show up in the Add New Item dialog.

In VS 2010 Express Editions, we do support T4 templates of both regular and preprocessed kinds, however you'll have to set them up yourself. If you add a regular text file, then rename its extension to '.tt", it should automatically get the regular T4 custom tool set up in the property grid for the file.

For preprocessed templates, you should set the custom tool manually to 'TextTemplatingFilePreprocessor'.

Leniel Maccaferri

The simplest test is:

In your Solution, Add New Item... look for Text Template item. If it's there, then chances are that VS 2010 Express supports T4 natively.

Take a look here for more info:

Does Visual Studio 2008 Express support t4?

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