How Does ReSharper Handle Controller/Action Name Inspection with Multiple ASP.NET MVC Areas?
I use ReSharper with an ASP.NET MVC project that has multiple areas and I am frequently being bugged by inspection errors on Action and Controller name strings in my method calls (Url.Action(), RedirectToAction(), etc) due to ReSharper being unable to identify the correct Area for a given Controller Action. In my case, in a few instances I have Controller/Action name pairs that exist in more than one Area of the site (there are two ProductsController.Index() Actions, for example).
What I am wondering is how ReSharper handles Areas with ASP.NET MVC- or if it does at all. If it is designed to support them, what project layout does it expect in order to get the Controller and Action name inspection rules correct in a given Area of the project?
Thanks!
Please sign in to leave a comment.
ReSharper supports only default MVC areas layout:
Area
Controllers
SomeController
Views
SomeView
Shared
SharedView
AnotherArea
Controllers
SomeController
Views
SomeView
Shared
SharedView