locked
RazorEngine.NetCore showing error in MVC .net core project....help RRS feed

Answers

All replies

  • User-474980206 posted

    The answer is the same. The library only supports asp net core 2.1 and 2.2. As 2.2 is no longer supported your project needs to be the asp.net core 2.1 (LTS) if you want to use this library.

    Saturday, May 2, 2020 6:29 PM
  • User107810802 posted

    Thanks Bruce for answering , do you have any other approach to do the same in .Net cor 3.1 . I need to render model objects in HTML for email Templating<br>
    <br>
    Thanks in advance .
    Saturday, May 2, 2020 8:29 PM
  • User107810802 posted
    Thanks Bruce for answering , do you have any other approach to do the same in .Net cor 3.1 . I need to render model objects in HTML for email Templating
    Saturday, May 2, 2020 8:30 PM
  • User-474980206 posted

    sure, the same way I've always done, render a view as a string. here is an article for core:

       https://ppolyzos.com/2016/09/09/asp-net-core-render-view-to-string/

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, May 2, 2020 9:20 PM
  • User107810802 posted

    Thank you very much , it worked very well for my use case. Will let you know if need further help. Thanks a lot!!

    Saturday, May 2, 2020 11:51 PM