I'm developing a library for use in ASP.NET Core MVC. For this library, I need to get a list of all (compiled) Razor views (path and content) that exist in the application.
Is there a way to lookup all compiled Razor views in the application during runtime? So far I have not had any luck trying to find out.
Iterating through .cshtml files is no option because they will not be published when using compiled views.