我相信我读某处有一个项目文件中的设置,将允许您在构建Visual Studio项目时编译.cshtml文件。
刚刚开始使用MVC / Razor / Query Mobile,并且当我在.cshtml文件中的代码块中有错误时,“错误加载页面”感到烦恼
解决方法
设置< MvcBuildViews> true< / MvcBuildViews>在< PropertyGroup>您的.csproj文件的元素。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。