<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: 3rd Party Library Conflict with Different Version of the Same Library in an Unrelated Add-in in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/3rd-party-library-conflict-with-different-version/m-p/1500393#M11797</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/24092"&gt;@KarenMeinstein&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Visual Studio, what is the value for the "Specific Version" property for these assemblies you have referenced?&lt;/P&gt;&lt;P&gt;If you have selected "Yes" then you will receive an error when that specific version is not found.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jul 2024 15:59:05 GMT</pubDate>
    <dc:creator>UmaHarano</dc:creator>
    <dc:date>2024-07-02T15:59:05Z</dc:date>
    <item>
      <title>3rd Party Library Conflict with Different Version of the Same Library in an Unrelated Add-in</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/3rd-party-library-conflict-with-different-version/m-p/1498489#M11767</link>
      <description>&lt;P&gt;Our add-in uses Log4Net for logging. We're using an old version and there hasn't been any reason to change that.&amp;nbsp; We've recently encountered an issue where one of our customers is using an add-in from another company and this add-in also uses Log4Net, but a newer version.&amp;nbsp; Now when our add-in is activated by clicking the tab, a Log4Net error occurs.&amp;nbsp; I'm able to reproduce this error by creating a test add-in using the newer Log4Net version.&amp;nbsp; It seems very strange that a 3rd party library used by another add-in should have any effect on an unrelated add-in using a different version of the same same 3rd party library. Has anyone else encountered something like this? An ideas on how to fix this?&amp;nbsp; I know we can update the Log4Net version, but that won't necessarily keep this from happening again.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 18:04:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/3rd-party-library-conflict-with-different-version/m-p/1498489#M11767</guid>
      <dc:creator>KarenMeinstein</dc:creator>
      <dc:date>2024-06-27T18:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: 3rd Party Library Conflict with Different Version of the Same Library in an Unrelated Add-in</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/3rd-party-library-conflict-with-different-version/m-p/1500015#M11784</link>
      <description>&lt;P&gt;We are not able to reproduce this issue using the Log4Net NuGet. Are you using different versions of the NuGet or are you referencing the Log4Net assemblies directly?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 18:44:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/3rd-party-library-conflict-with-different-version/m-p/1500015#M11784</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2024-07-01T18:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: 3rd Party Library Conflict with Different Version of the Same Library in an Unrelated Add-in</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/3rd-party-library-conflict-with-different-version/m-p/1500056#M11786</link>
      <description>&lt;P&gt;We are referencing the assemblies directly. Versions 1.2.10.0 and 2.0.17.0. I can send you the assemblies, if needed.&amp;nbsp; The issue occurs during the log4net configuration code:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;FileAppender fa = new FileAppender();&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;fa.Threshold = Level.Info;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;BasicConfigurator.Configure(fa);&lt;/P&gt;&lt;P&gt;Create 2 different add-ins, each with a button that runs the above code, and have one add-in reference the newer version of log4net and one reference the older version. When you click the button on one of the add-ins and then other, you'll get an error.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 20:05:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/3rd-party-library-conflict-with-different-version/m-p/1500056#M11786</guid>
      <dc:creator>KarenMeinstein</dc:creator>
      <dc:date>2024-07-01T20:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: 3rd Party Library Conflict with Different Version of the Same Library in an Unrelated Add-in</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/3rd-party-library-conflict-with-different-version/m-p/1500393#M11797</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/24092"&gt;@KarenMeinstein&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Visual Studio, what is the value for the "Specific Version" property for these assemblies you have referenced?&lt;/P&gt;&lt;P&gt;If you have selected "Yes" then you will receive an error when that specific version is not found.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 15:59:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/3rd-party-library-conflict-with-different-version/m-p/1500393#M11797</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2024-07-02T15:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: 3rd Party Library Conflict with Different Version of the Same Library in an Unrelated Add-in</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/3rd-party-library-conflict-with-different-version/m-p/1500454#M11799</link>
      <description>&lt;P&gt;The "Specific Version" property for both assemblies was set to nothing (i.e., blank).&amp;nbsp; I changed both to No, and I still get the error.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 17:30:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/3rd-party-library-conflict-with-different-version/m-p/1500454#M11799</guid>
      <dc:creator>KarenMeinstein</dc:creator>
      <dc:date>2024-07-02T17:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: 3rd Party Library Conflict with Different Version of the Same Library in an Unrelated Add-in</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/3rd-party-library-conflict-with-different-version/m-p/1501200#M11805</link>
      <description>&lt;P&gt;It seems you have introduced a dependency on a specific version of Log4Net into your addin assembly.&amp;nbsp; If your addin depends on a specific version of a 3rd party dll, the addin is responsible for deploying its dependencies. You can add the specific dll of log4net into &lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProGuide-content-and-image-resources#3rd-party-assemblies" target="_self"&gt;your addin as content&lt;/A&gt; and it will be deployed to the addin assembly cache where it can be resolved by the .NET assembly resolver.&lt;/P&gt;&lt;P&gt;The other alternative is to upgrade your addin to use the latest version of Log4Net via the NuGet.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 18:19:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/3rd-party-library-conflict-with-different-version/m-p/1501200#M11805</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2024-07-03T18:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: 3rd Party Library Conflict with Different Version of the Same Library in an Unrelated Add-in</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/3rd-party-library-conflict-with-different-version/m-p/1502570#M11831</link>
      <description>&lt;P&gt;We're already doing exactly that (deploying the log4net assembly) and have been the whole time. Apparently is ISN'T being correctly resolved by the .NET assembly resolver or this conflict with the other version, which is in the assembly cache for the other vendor's software, wouldn't be occurring.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 16:08:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/3rd-party-library-conflict-with-different-version/m-p/1502570#M11831</guid>
      <dc:creator>KarenMeinstein</dc:creator>
      <dc:date>2024-07-08T16:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: 3rd Party Library Conflict with Different Version of the Same Library in an Unrelated Add-in</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/3rd-party-library-conflict-with-different-version/m-p/1542360#M12119</link>
      <description>&lt;P&gt;We encountered the same issue where we load our own or third-party libraries with different versions. This is a common issue in .NET 5+ where assemblies with different versions cannot be loaded side by side, unlike in the .NET Framework. In .NET 5 and higher, if two different versions of the same assembly (in this case, Log4Net) are loaded in the same process, the runtime will attempt to load the highest version, which can lead to conflicts like the error you're seeing.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Cause:&lt;/STRONG&gt; From our point of view, this issue happens because ArcGIS Pro runs all add-ins in the same AppDomain and does not isolate the assemblies each add-in uses. So, when one add-in loads a newer version of Log4Net, that version is used globally, even if your add-in requires an older version. This causes conflicts when your add-in is activated.&lt;/P&gt;&lt;P&gt;The best way to resolve this would be for ArcGIS Pro to load each add-in in its own &amp;lt;code&amp;gt;AssemblyLoadContext&amp;lt;/code&amp;gt;. This feature, introduced in .NET Core, allows for isolation between assemblies loaded in different contexts, meaning that each add-in could load and use its own version of Log4Net (or any other library) without interfering with other add-ins.&lt;/P&gt;&lt;P&gt;We recommend that the ArcGIS Pro team consider implementing &amp;lt;code&amp;gt;AssemblyLoadContext&amp;lt;/code&amp;gt; for add-ins. This would resolve the versioning conflict you're experiencing and would prevent similar issues from happening in the future with other third-party libraries. It would also ensure that the add-ins can run independently, even if they use different versions of the same dependency.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 08:36:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/3rd-party-library-conflict-with-different-version/m-p/1542360#M12119</guid>
      <dc:creator>Johannes_Strahler</dc:creator>
      <dc:date>2024-09-25T08:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: 3rd Party Library Conflict with Different Version of the Same Library in an Unrelated Add-in</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/3rd-party-library-conflict-with-different-version/m-p/1543909#M12139</link>
      <description>&lt;P&gt;Thanks for posting this information!&amp;nbsp; We are also encountering similar issues when registering Gdal, which is incredibly frustrating.&amp;nbsp; I hope ESRI reads this and considers implementing a solution.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 17:37:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/3rd-party-library-conflict-with-different-version/m-p/1543909#M12139</guid>
      <dc:creator>KarenMeinstein</dc:creator>
      <dc:date>2024-09-30T17:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: 3rd Party Library Conflict with Different Version of the Same Library in an Unrelated Add-in</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/3rd-party-library-conflict-with-different-version/m-p/1560940#M12320</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/538704"&gt;@Johannes_Strahler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please made an Idea request for this on this page? &lt;A href="https://community.esri.com/t5/arcgis-pro-sdk-ideas/idb-p/ArcGIS_Pro_SDK_Ideas" target="_blank"&gt;ArcGIS Pro SDK Ideas&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;Uma&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 19:34:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/3rd-party-library-conflict-with-different-version/m-p/1560940#M12320</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2024-11-20T19:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: 3rd Party Library Conflict with Different Version of the Same Library in an Unrelated Add-in</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/3rd-party-library-conflict-with-different-version/m-p/1564628#M12352</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/24092"&gt;@KarenMeinstein&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/538704"&gt;@Johannes_Strahler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For anyone interested - there is already an Idea request for this, so you can support it by giving kudos or commenting:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-sdk-ideas/load-arcgis-pro-add-ins-into-their-own/idi-p/1477236" target="_blank"&gt;https://community.esri.com/t5/arcgis-pro-sdk-ideas/load-arcgis-pro-add-ins-into-their-own/idi-p/1477236&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 13:23:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/3rd-party-library-conflict-with-different-version/m-p/1564628#M12352</guid>
      <dc:creator>MarcelŠíp</dc:creator>
      <dc:date>2024-12-04T13:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: 3rd Party Library Conflict with Different Version of the Same Library in an Unrelated Add-in</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/3rd-party-library-conflict-with-different-version/m-p/1570148#M12429</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/9021"&gt;@UmaHarano&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;isn t this the (same) idea:&amp;nbsp;&lt;LI-MESSAGE title="Load ArcGIS Pro Add-Ins into their own AssemblyLoadContext" uid="1477236" url="https://community.esri.com/t5/arcgis-pro-sdk-ideas/load-arcgis-pro-add-ins-into-their-own/m-p/1477236#U1477236" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2024 13:23:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/3rd-party-library-conflict-with-different-version/m-p/1570148#M12429</guid>
      <dc:creator>Markus_Bedel</dc:creator>
      <dc:date>2024-12-19T13:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: 3rd Party Library Conflict with Different Version of the Same Library in an Unrelated Add-in</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/3rd-party-library-conflict-with-different-version/m-p/1592533#M12712</link>
      <description>&lt;P&gt;Check out this link for a temporary workaround.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-sdk-ideas/load-arcgis-pro-add-ins-into-their-own/idi-p/1477236#U1477236" target="_blank"&gt;https://community.esri.com/t5/arcgis-pro-sdk-ideas/load-arcgis-pro-add-ins-into-their-own/idi-p/1477236#U1477236&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 22:01:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/3rd-party-library-conflict-with-different-version/m-p/1592533#M12712</guid>
      <dc:creator>vanesch</dc:creator>
      <dc:date>2025-03-05T22:01:23Z</dc:date>
    </item>
  </channel>
</rss>

