【发布时间】:2011-09-21 12:11:12
【问题描述】:
我有一个 T4 模板来为支持我的 .edmx 模型的实体生成 C# 类。模板以此标题开头:
<#@ template language="C#" debug="false" hostspecific="true"#>
<#@ include file="EF.Utility.CS.ttinclude"#>
<#@ output extension=".cs"#>
尝试构建项目会导致这些错误
error CS0234: The type or namespace name 'Design' does not exist in the namespace 'System.Data.Entity'...
error CS0246: The type or namespace name 'EnvDTE' could not be found (are you missing a using directive...
error CS0234: The type or namespace name 'VisualStudio' does not exist in the namespace 'Microsoft'...
我该如何解决这个问题?
【问题讨论】:
标签: visual-studio-2010 entity-framework code-generation compiler-errors t4