I am extending MVC3 by overriding WebRazorHostFactory, MvcWebPageRazorHost and related classes to create a custom directive (like @model) that will change the base class of the view to a custom class deriving from WebPageBase, and will also add a second generic parameter to it. Everything works and the class is generated correctly; however, ReSharper does not recognize the new directive. Is there any way to extend ReSharper to recognize this?
I am extending MVC3 by overriding WebRazorHostFactory, MvcWebPageRazorHost and related classes to create a
Share
Theoretically you can write such a plugin for ReSharper. But it’s complicated and result is not guaranteed. Prepare yourself for many hours of looking at ReSharper’s code with DotPeek. You can start by looking at RazorModelDirective, RazorCSharpMvcLanguage and RazorCSharpMvcLanguageService. You’d need to make classes similar to these.