的定义,我使用MvcSiteMapProvider MVC5与我的web应用程序和我_Layout.cshtml文件里我使用:System.Web.Mvc.HtmlHelper不包含MvcSiteMap
@if (Html.MvcSiteMap().SiteMap.CurrentNode != Html.MvcSiteMap().SiteMap.RootNode)
{
@Html.MvcSiteMap().SiteMapPath()
}
但Intellisence抛出此错误:
System.Web.Mvc.HtmlHelper does not contain a definition for MvcSiteMap
有谁知道如何解决这个问题?
@StevenV Ofcourse修复了错误。 – user667430