I would like to have .html files serve as views alongside other .cshtml views in my ASP.NET MVC project. The main reason for this is so that the html files are subject to th
I found a solution. In my action I return FilePathResult and it just loads the file and passes it through without any compilation.
return new FilePathResult("path_and_file.html", "text/html");