0

Possible Duplicate:
Is it possible to use Razor View Engine outside asp.net

I want to use Razor script in a console application.

The application I am creating is rich client (non web) application and I don't want to use MVc3 web hoster for it.

Can I use Razor script in a C# console application?

Community
  • 1
  • 1
InfoLearner
  • 14,952
  • 20
  • 76
  • 124

2 Answers2

3

Yes, you can. Answer is here Is it possible to use Razor View Engine outside asp.net

Razor is widely used as Email renderer.

Community
  • 1
  • 1
Vladmir
  • 1,255
  • 9
  • 13
0

Add Reference to System.Web.Razor.dll, and call the classes defined in that System.Web.Razor.dll

linquize
  • 19,828
  • 10
  • 59
  • 83