I built a console application in Visual Studio 2013, that sends email reports daily. I am using a .cshtml template parsed with Razor. Is it possible to use partial views for my main cshtml file? I tried using the syntax:
@Html.Partial("_partial")
but I get an error ("The name 'Html' does not exist..."). I found information about partial views only with MVC projects. I want to know how and if I can use them in a console application.
I also tried to render the partial view, to a string inside the cshtml main template, but my template will read html markup as literal string. And I can't seem to use HTML helpers outside of MVC.
Thank you in advance.