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