【发布时间】:2010-10-11 12:49:43
【问题描述】:
刚刚听说过 T4MVC,但我无法在我的示例项目(ASP.NET MVC 2、Visual Studio 2008)中使用它。
我在尝试构建项目时遇到以下错误:
错误 1 名称空间“Northwind.Web.MVC”中不存在类型或名称空间名称“Account”(您是否缺少程序集引用?) C:\Users\Bruno\Documents\My Dropbox\Projetos.NET \Northwind\Northwind.Web.MVC\AccountController.generated.cs 38 61 Northwind.Web.MVC
这是发生错误的地方:
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
public AccountController Actions { get { return MVC.Account; } }
我真的很讨厌魔法弦,所以请帮我把它弄好!
【问题讨论】:
标签: visual-studio-2008 asp.net-mvc-2 t4mvc