My Installer Project Uses a Library written in C# for Custom Actions.
This Library uses another Library that uses log4Net ( a library for logging) version 1.2.15.0, at the same time it uses another library that in itself uses log4net version 1.2.13.0.
Normaly this is not a problem for c# . You can just add a Binding redirect in the config of the library that uses the higher version like
Code: Select all
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="log4net" publicKeyToken="669e0ddf0bb1aa2a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.2.15.0" newVersion="1.2.15.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
I tryed to add the config as a temporary file, but it didn't work either.
Can you tell me what do I have to do, so the BindingRedirect works?
Thank you
FOLLOW US
Get the latest news in Application Packaging