我想在我的MVC项目使用T4模板。这截屏建议只是复制了MVC现有的T4模板到您的解决方案,并从那里。然而,当我尝试编译我得到这个错误:

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

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

有帮助吗?

解决方案

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

其他提示

我通过控制台安装Twitter的引导后得到这个错误

Install-Package twitter.bootstrap.mvc4.sample

和我的解决办法是关闭Visual Studio和重新打开它,错误就消失了。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top