2012-02-02 60 views
0

我使用RazorGenerator为我的mvc视图,现在我尝试使用meleze.web优化我的视图html,但它只是没有工作。 我有检查配置几次,一切都很好在/Views/Web.config使用Meleze.web与剃刀发电机

<configuration> 
    <system.web.webPages.razor>  
    <host factoryType="Meleze.Web.Razor.MinifyHtmlWebRazorHostFactory, Meleze.Web, Version=1.0.0.2, Culture=neutral, PublicKeyToken=0a868b5321967eda" /> 

</system.web.webPages.razor> 
</configuration> 

我收到任何错误,也不例外,什么都没有 永远不会被调用它的模样Meleze.web。

有什么想法?我有很多谷歌没有任何结果。

+0

有时你需要清洁的解决方案,并再次建立它。 – ogun 2014-09-30 14:18:29

回答

0

建议你查一下this existing answer

这是最有可能的答案你的问题。此外,请确保您已注释掉现有的Razor视图引擎。

即注释掉它

<!--<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />-->