Skip to content

Files

Latest commit

 Cannot retrieve latest commit at this time.

History

History
14 lines (8 loc) · 1.16 KB

README.md

File metadata and controls

14 lines (8 loc) · 1.16 KB

Render Razor view to string

Azure DevOps builds CodeFactor

GitHub license GitHub issues

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.InNonWeb Console project
  • Web scenario - is illustrated in RazorViewToString.InWeb ASP.NET MVC project