Return-Path: X-Original-To: apmail-logging-log4net-dev-archive@www.apache.org Delivered-To: apmail-logging-log4net-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6D9D210841 for ; Wed, 9 Oct 2013 14:02:50 +0000 (UTC) Received: (qmail 35479 invoked by uid 500); 9 Oct 2013 14:02:49 -0000 Delivered-To: apmail-logging-log4net-dev-archive@logging.apache.org Received: (qmail 35331 invoked by uid 500); 9 Oct 2013 14:02:44 -0000 Mailing-List: contact log4net-dev-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Log4NET Dev" List-Id: Delivered-To: mailing list log4net-dev@logging.apache.org Received: (qmail 35313 invoked by uid 99); 9 Oct 2013 14:02:42 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Oct 2013 14:02:42 +0000 Date: Wed, 9 Oct 2013 14:02:41 +0000 (UTC) From: "Stefan Bodewig (JIRA)" To: log4net-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LOG4NET-397) Conflicts due to new strong name key MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LOG4NET-397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13790367#comment-13790367 ] Stefan Bodewig commented on LOG4NET-397: ---------------------------------------- http://svn.apache.org/viewvc/logging/log4net/trunk/src/site/xdoc/release/faq.xml?r1=1530611&r2=1530610&pathrev=1530611 - will be published soon. > Conflicts due to new strong name key > ------------------------------------ > > Key: LOG4NET-397 > URL: https://issues.apache.org/jira/browse/LOG4NET-397 > Project: Log4net > Issue Type: Bug > Reporter: Joe > > Consider an application that uses two third-party assemblies: > - AssemblyA from Supplier A, compiled with log4net 1.2.10 (old strong-name key) > - AssemblyB from Supplier B, compiled with log4net 1.2.11 (new strong-name key) > How can I make these two assemblies co-exist and use the same version of log4net? > Maybe I'm missing something obvious, but I can't see any way to do this: for example I obviously can't have both log4net assemblies in the same bin folder, as they have the same name. > I'm obviously not the only one who thinks there's a problem, e.g. issue LOG4NET-324 refers to "... the strong name horror too". The comment on this issue: > "... But if you need the old "strong name", you can simply use the "oldkey" binaries. I can't see how this is a horror, but of course I'm biased." > doesn't seem to address the problem of conflicts. > Also there are no guidelines for component suppliers as to which version to use, which increases the risk of conflicts. In the absence of explicit guidelines, I guess legacy components will have the old key, whereas new ones will tend to use the new key, since that is the only version available via NuGet. > The only solution I can see is the following: > - The "new key" assembly needs to have a different name from the "old key" assembly (e.g. log4net-2.dll). > - Use Type forwarding to enable both versions to co-exist. E.g. you could supply a special log4net.dll signed with the old key that uses type forwarding to forward to log4net-2.dll signed with the new key. Or vice-versa. -- This message was sent by Atlassian JIRA (v6.1#6144)