This POC demonstrates how to render (convert) a Razor view to a string in/using ASP.NET Core.
The actual render operation is done in the RazorViewToString Class-library project.
And how its used in a:
- Non-web scenario - is illustrated in
RazorViewToString.InNonWebConsole project - Web scenario - is illustrated in
RazorViewToString.InWebASP.NET MVC project