Razor in winforms

For my work, I have to do a lot of small projects that require sending different emails and creating some html. I usually do these forms in Winforms. Now at this moment, when I need to fill in my html, I take a string, replace some values ​​and get functions that write string strings in strings.

To make my work easier, I was wondering if it is possible to import a razor engine (not sure if this word is correct) in my winforms project and just transfer the model to a CSHTML file that returns the HTML in the string to me, so I can send it to the staff.

If possible, instructions on how to do this are welcome.

Regards, Roxas

+4
source share

Source: https://habr.com/ru/post/1528109/


All Articles