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

webconfig中配置

<compilation debug="true" targetFramework="4.5.1">       
<buildProviders>         
<add extension=".cshtml" type="System.Web.Compilation.PageBuildProvider"/>       
</buildProviders>      
</compilation>
原文地址:https://www.cnblogs.com/szw/p/5677382.html