0
我已經做了foloowing:HTML擴展在_LogOnPartial.cshtml(剃刀)不可用
創建了以下一類/方法:
namespace MyApp.Extensions
{
public static class Html
{
public static MvcHtmlString ActionImage(this HtmlHelper html, string action, object routeValues, string imagePath, string alt)
{ ...}
}
}
在次〜/網絡認沽命名空間MyApp.Extensions的.config。要查看它是否出現在Itellisense中,我嘗試輸入_Layout.cshtml並且它沒有任何問題。
但是:它不出現在_LogOnPartial.cshtml中。
爲什麼?我究竟做錯了什麼?
在此先感謝
Darin你是對的:關閉並重新打開解決了這個棘手的情況!這是爲什麼發生?這是「正常」的行爲嗎?不管怎麼說,還是要謝謝你! – 2012-03-25 14:59:58
@SavvasSopiadis,不,這不是一個正常的行爲。這是一個錯誤。 – 2012-03-25 15:30:15