Change Default Location of Views and Razor Pages in ASP.NET Core

ASP.NET Core MVC web applications typically store view files under Views folder and Razor Pages are stored under Pages folder. Although this default location is what you want in most of the applications, at times you may want to store views and pages in some different folder. To that end this short article shows how to accomplish just that.

http://www.binaryintellect.net/articles/c50d3f14-7048-4b4f-84f4-1b28cb0f9d96.aspx