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:


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. Thank you in advance.

Related posts

Recent Viewed