Using Razor in a Console Application (outside of ASP.NET Core MVC)
In addition up to my previous post, Using ASP.NET Core Razor Views from a Class Library, I wanted to also dig into how you can use Razor in a Console Application. Basically from outside of ASP.NET Core MVC. The most likely situation for this is wanting to generate Emails using Razor that are being sent from a service or console application. The other might be from another web framework/middleware inside of ASP.NET Core. To demo how to use Razor outside of ASP.NET CORE MVC, I’m going to use Razor in a Console Application. Specifically I’m using netcoreapp2.1 for this demo but… Read More »Using Razor in a Console Application (outside of ASP.NET Core MVC)