2013-06-25 5 views
3

NUGET을 통해 MVC4 앱에 servicestack MVC를 설치하고 미니 프로파일 러를 활성화하려고합니다. 내가 Global.asax에에 다음의 지침에 따라 수행 한'ServiceStack.MiniProfiler.IHtmlString'에 'AsRaw'에 대한 정의가 없습니다.

:

protected void Application_BeginRequest(object src, EventArgs e) 
    { 
     if (Request.IsLocal) 
      ServiceStack.MiniProfiler.Profiler.Start(); 
    } 

protected void Application_EndRequest(object src, EventArgs e) 
    { 
     ServiceStack.MiniProfiler.Profiler.Stop(); 
    }  

내가 레이아웃 페이지에서 @의 ServiceStack.MiniProfiler.Profiler.RenderIncludes() AsRaw()를 두었다.. 그러나이 방법에는이 참조가 없습니다. "@ ServiceStack.MiniProfiler.Profiler.RenderIncludes()"에서 "ToHtmlString()"& "ToString()"만 이스케이프 처리 된 html을 렌더링합니다. MVC4에서 "AsRaw()"메소드가 제거 되었습니까?

답변

관련 문제