MvcTextTemplateHost未找到 [英] MvcTextTemplateHost not found

查看:309
本文介绍了MvcTextTemplateHost未找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的MVC项目使用T4模板。这<一个href=\"http://www.tampadev.org/News/Details/AspNetMvcT4Templates$c$cGenerationScreencast\">screencast建议仅仅复制了MVC现有的T4模板到您的解决方案,并从那里。然而,当我尝试编译我得到这个错误:

I'm trying to use the T4 templates in my MVC project. This screencast suggests just copying the existing T4 templates for MVC into your solution and going from there. However when I try to compile I get this error:

Error   1	Compiling transformation: The type or namespace name   
'MvcTextTemplateHost' could not be found (are you missing a using directive
or an assembly reference?)

我不知道这可能会住在什么样装配,而谷歌是不是被它多大的帮助。有谁知道我应该参考什么大会?

I have no idea what assembly this might live in, and google isn't being much help with it. Does anyone know what assembly I should reference?

推荐答案

有关每个模板点击右键,选择属性,清除自定义工具属性。
这已经为我的项目。

For each template right click, select Properties and clear the Custom Tool property. This has worked for my projects.

这篇关于MvcTextTemplateHost未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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