Log4net 1.2.10 running on .NET 1.1 and 2.0 not compatible

Posted by Daniel Williams on Stack Overflow See other posts from Stack Overflow or by Daniel Williams
Published on 2011-06-22T23:48:36Z Indexed on 2011/06/23 0:22 UTC
Read the original article Hit count: 213

Filed under:
|

I have old code that uses log4net version 1.2.10 targeted for the .NET 1.1 platform. My current code uses lognet version 1.2.10 targeted for the .NET 2.0 platform

When I mix the old and new code all hell breaks loose. Code written today on .NET 4.0 and VS2010 can use the 2.0 log4net dll just fine. but if I put in the 1.1 version, it breaks. Conversely, the old dlls will break if I use the 2.0 log4net dll.

I do not want to force my old dlls onto 2.0. Is there a good solution? I guess what bugs me most is that the log4net has the same version number, but I cannot fool my code and dlls into working with a single version.

© Stack Overflow or respective owner

Related posts about c#

Related posts about log4net