Antaris / RazorEngine

Open source templating engine based on Microsoft's Razor parsing engine
http://antaris.github.io/RazorEngine
Other
2.14k stars 578 forks source link

Compatible work with System.Web.Razor 4.0.0 #24

Closed TobiasHei closed 11 years ago

TobiasHei commented 12 years ago

I tried to use RazorEngine with System.Web.Razor 4.0.0 (from MVC 4) and it doesnt work, it need 2.0.0

Any plans on upgrading to 4 ?

Antaris commented 12 years ago

Are you using a binding redirect?

TobiasHei commented 12 years ago

this is from my web.config (auto generated from MVC 4): gt assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"lt        gt dependentAssemblylt          gt assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" /lt          gt bindingRedirect oldVersion="1.0.0.0" newVersion="2.0.0.0" /lt        gt /dependentAssemblylt        gt dependentAssemblylt          gt assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" /lt          gt bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="4.0.0.0" /lt        gt /dependentAssemblylt        gt dependentAssemblylt          gt assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" /lt          gt bindingRedirect oldVersion="1.0.0.0" newVersion="2.0.0.0" /lt        gt /dependentAssemblylt      gt /assemblyBindinglt 

Thanks for your Answer ! It works for me with MVC 3 but not on MVC 4.

georgiosd commented 12 years ago

See http://stackoverflow.com/a/10936596/165656

georgiosd commented 12 years ago

And https://github.com/Antaris/RazorEngine/issues/42

markchivs commented 12 years ago

New version available: https://github.com/Antaris/RazorEngine/issues/71