T4参考“MvcTextTemplateHost'和'的VisualStudio” [英] T4 References for 'MvcTextTemplateHost' and 'VisualStudio'

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

问题描述

我在创建MVC 3 T4模板的问题。我已经清除模板的自定义工具属性作为​​ MvcTextTemplateHost没有找到建议。但我不能找到其中引用包括

I'm having problems creating MVC 3 T4 template. I have cleared the "Custom Tool" property for the template as MvcTextTemplateHost not found suggests. But I cant find which reference to include.

此外,我需要找到Microsoft.VisualStudio.Web.Mvc.Scaffolding.BuiltIn参考,我不能找到它在引用列表中。

Also I need to find reference for Microsoft.VisualStudio.Web.Mvc.Scaffolding.BuiltIn, I cant find it in the list of references.

哪些引用丢失?

TIA

/拉塞

推荐答案

大概去了解这个最简单的方法是将现有的code模板用的NuGet(安装包MVC3 codeTemplatesCSharp)添加到项目然后做出一个模板的副本,或者采取什么引用被包含在了他们一眼。

Probably the simplest way to go about this is to add the existing code templates to your project with NuGet (install-package Mvc3CodeTemplatesCSharp) and then make a copy of one of the templates or take a look at what references are included in them.

这篇关于T4参考“MvcTextTemplateHost'和'的VisualStudio”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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