我正在我的网站上为 MVC 2 设置 T4MVC。我收到 2 个构建错误:
在 T4MVC.cs 中,“RenderAction”方法没有重载需要 3 个参数
和
在 T4MVC.cs 中,方法 'Action' 没有重载需要 3 个参数
这些是 T4MVC.cs 文件中的内容:
public static void RenderAction(this HtmlHelper htmlHelper, ActionResult result) {
var callInfo = result.GetT4MVCResult();
htmlHelper.RenderAction(callInfo.Action, callInfo.Controller, callInfo.RouteValueDictionary);
}
public static MvcHtmlString Action(this HtmlHelper htmlHelper, ActionResult result) {
var callInfo = result.GetT4MVCResult();
return htmlHelper.Action(callInfo.Action, callInfo.Controller, callInfo.RouteValueDictionary);
}
谢谢