Using Glass Mapper's @inherits GlassView wi

2019-09-08 09:41发布

问题:

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?