From http://stackoverflow.com/questions/17863627/msbuild-cannot-find-a-dll-that-has-been-bindingredirectd-via-web-config
It seems that despite loading the System.Web.* binaries into the AppDomain, invoking the WebConfigurationManager complains about not being able to find the binaries
Comments: For the lack of a better way of having a better way of sharing this - could you try replacing RazorGenerator.Core with this one - https://www.dropbox.com/s/dorfb0e3tupqgz8/RazorGenerator.Core.dll and see if that works for you?
It seems that despite loading the System.Web.* binaries into the AppDomain, invoking the WebConfigurationManager complains about not being able to find the binaries
Comments: For the lack of a better way of having a better way of sharing this - could you try replacing RazorGenerator.Core with this one - https://www.dropbox.com/s/dorfb0e3tupqgz8/RazorGenerator.Core.dll and see if that works for you?