For an ASP.NET MVC 5 project, is there some kind of priority ranking between views?
And do they need to be in separate folders within the project?
For an ASP.NET MVC 5 project, is there some kind of priority ranking between views?
And do they need to be in separate folders within the project?
Copyright © 2021 Jogjafile Inc.
Although I am answering a year later but I should say "Yes there is!" to your first question. The locations are listed at a string list called
ViewLocationFormatsin theRazorViewEngin. You can even change the list by inheriting theRazorViewEngine, take a look at here or even changing the existing one So the answer to your second question is that they should be anywhere as long as the containing folder listed in the view locations of the usedRazorViewEngine.