I am working on Asp.Net MVC 4 web application. This is first time I am using RazorJS in my application. I have installed it from NuGet Package Manager. After installing, new two references are added in my project ie. RazorEngine(Version 2.1.4113.149) and RazorJS(Version 0.4.3.0). Now as per instructions given in RazorJS official website here. I have added following code in my view(.cshtml) file.
var s = "hello at @DateTime.Now"; alert(s);
Could not load type 'System.Web.Razor.Parser.MarkupParser' from assembly 'System.Web.Razor, Version=18.104.22.168, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
As per this I think there is issue in System.Web.Razor version 22.214.171.124(In MVC 4 it's version 2). So to cross check it I created MVC3 web application in which System.Web.Razor version is 126.96.36.199 and in MVC3 application it works properly. So my question is How do I make it workable in my Asp.Net MVC4 application which using System.Web.Razor version 188.8.131.52
Thanks in advance....