阅读背景:

ASP.NET MVC 3.0 视图在类库项目中无法智能提示解决方法

来源:互联网 

由于某种架构的需要,许多视图(.cshtml)被分布到不同的类库项目中,在项目编译时通过post-build复制到启动项的指定目录。部分开发人员在一些项目中修改视图时出现无法智能提示。Views文件夹下有Web.config,当打开某个.cshtml文件出现提示:“ASP.NET runtime error: There is no build provider registered for the extension '.cshtml'. You can register one in the <compilation><buildProviders> section in the machine.config or web.config. Make sure is has a BuildProviderAppliesToAttribute attribute which includes the value 'Web' or 'All'.”。由于某种架构的需要,许多视图(.cshtml)被分布到不同的类库项目中,在项目编译时通过pos




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: