问题
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