Assembly Redirection for Custom Module

Topics: Writing modules
Apr 1, 2015 at 5:24 PM
I'm currently forking an existing project, https://github.com/Jetski5822/NGM.OpenAuthentication and I'm adding the GoogleOAuth2 client instead of the OpenID client. The dependencies from Nuget for DotNetOpenAuth Google OAuth 2 client requires that an assembly dependency redirect be added in the root web.config:
<dependentAssembly>
        <assemblyIdentity name="DotNetOpenAuth.AspNet" publicKeyToken="2780ccd10d57b246" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-4.3.0.0" newVersion="4.3.0.0" />
</dependentAssembly>
Currently I have these two options that I know of:
  1. Add this manually to the root web.config (not cool)
  2. Write a custom assembly resolver (overly complicated)
Do you guys have a more universal way of handling dependency redirects?