How to load views from a Class Library project?

南楼画角 提交于 2019-12-03 06:32:55

The reason this happens is because you are now serving the razor views from unknown locations the standard ~/views/web.config no longer applies. So you could put a @inherits System.Web.Mvc.WebViewPage inside your custom views but it could be quite a hassle.

You may checkout the following article.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!