刚刚听说过 T4MVC,但我无法在我的示例项目(ASP.NET MVC 2、Visual Studio 2008)中使用它。
尝试构建项目时出现以下错误:
错误 1 命名空间“Northwind.Web.MVC”中不存在类型或命名空间名称“Account”(您是否缺少程序集引用?) C:\Users\Bruno\Documents\My Dropbox\Projetos.NET\Northwind\北风.Web.MVC\AccountController.generated.cs 38 61 北风.Web.MVC
这是发生错误的地方:
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
public AccountController Actions { get { return MVC.Account; } }
我真的很讨厌魔术弦,所以请帮助我让它工作!