0
我在我的網站上爲MVC 2設置T4MVC。我得到2個編譯錯誤:設置T4MVC和MVC 2的問題
無重載方法 '的RenderAction' 3個參數中T4MVC.cs
和
無重載方法 '行動' 3個參數中T4MVC.cs
這些都是在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);
}
謝謝
我下載了最新版本的MVC 2並獲得了ChildActionExtensions。猜猜我有某種MVC 2的RC/Beta版。 謝謝 – knepe 2010-04-30 14:58:41