VS 2010 Express 版是否支持 T4 预处理模板? [英] Does VS 2010 Express edition support T4 preprocessed templates?

查看:30
本文介绍了VS 2010 Express 版是否支持 T4 预处理模板?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

刚刚安装了 2010 Express Edition,我看不到 Preprocess t4 模板作为选项.2010 Express 不支持吗?

Just installed 2010 Express Edition and I cannot see Preprocess t4 template as an option. Is it not supported in 2010 Express?

推荐答案

不幸的是,我们的 VS Express 版本安装程序中的项目模板配置有一点错误,并且不在磁盘上的正确位置,因此请不要出现在添加新项目对话框.

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.

在 VS 2010 Express Editions 中,我们确实支持常规和预处理类型的 T4 模板,但是您必须自己设置它们.如果您添加常规文本文件,然后将其扩展名重命名为.tt",它应该会自动获取在该文件的属性网格中设置的常规 T4 自定义工具.

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.

对于预处理模板,您应该手动将自定义工具设置为TextTemplatingFilePreprocessor".

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

这篇关于VS 2010 Express 版是否支持 T4 预处理模板?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆