Using Glass Mapper's @inherits GlassView<T> with MVC 5.0 views

淺唱寂寞╮ 提交于 2019-12-13 05:09:09

问题


I recently updated my solution to MVC 5 and I am facing the following issue.

It appears as though I can no longer format the code in any of my Views that utilize @inherits GlassView<T>. By format, I mean auto-formatting using the CTRL + K + D key combination. When I press the format combination, the namespace and class name get lowercased and all references to Model appear to break. This only occurs on GlassViews... traditional Views using a @model declaration appear to be unaffected.

Any ideas what could be causing this?

来源:https://stackoverflow.com/questions/19923281/using-glass-mappers-inherits-glassviewt-with-mvc-5-0-views

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