DotNetOpenAuth与log4net 1.2.11

时间:2012-02-09 14:22:53

标签: log4net dotnetopenauth

有没有办法让DotNetOpenAuth日志记录与新版log4net一起使用?

由于某种原因,它似乎对我不起作用(我尝试了publicKeyToken的旧log4net

由于

1 个答案:

答案 0 :(得分:2)

您是否尝试过绑定重定向?

<runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
        <dependentAssembly>
            <assemblyIdentity name="log4net" publicKeyToken="**key**" />
            <bindingRedirect oldVersion="**versionDNOAbuiltWith**" newVersion="**yourversion**" />
        </dependentAssembly>
    </assemblyBinding>
</runtime>