RazorEngine and ASP.NET WebPages v2

I use RazorEngine for generating emails. Unfortunately, it has a dependency on ASP.net Web Pages v 1. The best way to install this on a machine that doesn’t already have v1 in the GAC is to issue a bindingRedirect.

    <assemblyBinding  xmlns="urn:schemas-microsoft-com:asm.v1">
        <assemblyIdentity name="System.Web.Razor" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <!--<bindingRedirect oldVersion="" newVersion="" />-->
        <codeBase version="" href="bin\v1\System.Web.Razor.dll" />

Leave a Reply

Your email address will not be published. Required fields are marked *