Closed Antaris closed 11 years ago
Hi,
I have hacked together a version that runs against Razor 2 in my fork.
https://github.com/coxp/RazorEngine
I am using this in production and all existing tests run but I haven't added any new tests to ensure all functionality is correct, and therefore didn't make a pull request.
Regards, Paul.
Don't you think it make sense to make a pull request even without tests for new functionality? It could be marked as beta and pushed to nuget "as is'. Tests could be written later. It would be great.
I agree with Alex, than everyone can choose if wants to upgrade or not!! It seems a better solution than building custom lib! :)
Just a quick note - the merged DLL in the download does appear to have been merged against the .Net 4.5 binaries. You will likely get an error if you run this on a machine with .Net 4.0 on. We re-ran the merge on our own machine and it works fine however.
I implemented another razormachine built on Razor 2.0. It has built-in support for layouts and _viewStart as well. For anyone who might be interested.... https://github.com/jlamfers/RazorMachine
Thanks for the workaround!
So, does it finally work with MVC 4? Or i still need to use a hacked version?
Yes, v3.2.0 on Nuget supports MVC 4
Hi,
Sorry for still not getting round to this, as a stop-gap solution, you can download a version of RazorEngine which has System.Web.Razor.dll ILMerged and can be run from an MVC4 application.
http://www.fidelitydesign.net/downloads/RazorEngine-MVC4Compatible.zip
Within that assembly download there is a \nuget folder with the associated RazorEngine.dll.
Again, I'm sorry I haven't completed any additional work on this project in quite a while, it is still on my todo list.
Please let me know here if you have any issues with that assembly.