I am trying to migrate some existing code from MVC5 to MVC6 and I am having difficulty with this particular code:

 Engine.Razor.RunCompile(File.ReadAllText(emailTemplatePath), "emailTemplateKey", typeof (EmailViewModel), emailViewModel);

The issue I am having is the same as this post.

However rather than creating a new "RenderPartialViewToString" method I would like to still use the Razor Engine or is this no longer possible?

Related posts

Recent Viewed