I have a asp.net core 1.1 project, and I need to get the compiled C# code of a cshtml view that contains tag helpers.
I am aware of the possibility to precompile the razor views, but this does not help since it generates a dll containing the IL code corresponding to the view and not the C# code.
I found the following article that explains how to use the razor engine outside of asp.net mvc, but it is not relevant for asp.net core.