Antaris/RazorEngine — pull request #68 by timkly (2012-10-12 07:24:17+00:00)
Title: Added support for Medium Trust Environments

This pull requests contains the code for a new assembly 'RazorEngine.Web' which allows V3 to be run in a Medium Trust environment. I also included a sample web application for testing. There are no unit tests. I did have to make some changes to Core, such as autoloading from a config when it exists and I assume this will eventually make the XmlTemplateServiceConfiguration code redundant.

Unit Tests work as expected (2 fail).

Setup and Configuration for medium trust is almost identical to v2 (only attributes names have changed). I've also had to put a supressing try catch around '_appDomain.AssemblyResolve += _resolveEventHandler;' in TypeLoader (since medium trust can't access AssemblyResolve)