[备忘]没有为扩展名“.cshtml”注册的生成提供程序

webconfig中配置

<compilation debug="true" targetFramework="4.5.1">       
<buildProviders>         
<add extension=".cshtml" type="System.Web.Compilation.PageBuildProvider"/>       
</buildProviders>      
</compilation>
posted on 2016-07-16 22:19  SZW  阅读(839)  评论(0编辑  收藏  举报