<?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: One shared dll for multiple AutoCAD plugins in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/one-shared-dll-for-multiple-autocad-plugins/m-p/13428244#M7485</link>
    <description>&lt;P&gt;I've used shared libraries often. I usually add a reference to them from projects that use them, where I set COPYLOCAL to false, and then deploy the shared dll in a known location that each project can reference. As far as different versions, if you mean the assembly version, I don't change it unless there is a breaking change, which is something I try to avoid at all costs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Apr 2025 02:28:12 GMT</pubDate>
    <dc:creator>ActivistInvestor</dc:creator>
    <dc:date>2025-04-16T02:28:12Z</dc:date>
    <item>
      <title>One shared dll for multiple AutoCAD plugins</title>
      <link>https://forums.autodesk.com/t5/net-forum/one-shared-dll-for-multiple-autocad-plugins/m-p/12218150#M7476</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my company we have few applications that relay on our internal dll that contains helper methods when working with AutoCAD. So the structure is as following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="popovictamara91_0-1693897966659.png" style="width: 381px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1262022i7628EB51AC929030/image-dimensions/381x248?v=v2" width="381" height="248" role="button" title="popovictamara91_0-1693897966659.png" alt="popovictamara91_0-1693897966659.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Because AutoCAD only loads one version of the shared dll, if one of the applications installed references the newer/later version of shared dll we have problem, because AutoCAD won't allow different versions of the same dll to be loaded. So what would be your approach/advice when dealing with these scenarios?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;Tamara&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 07:23:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/one-shared-dll-for-multiple-autocad-plugins/m-p/12218150#M7476</guid>
      <dc:creator>vucic_tamara</dc:creator>
      <dc:date>2023-09-05T07:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: One shared dll for multiple AutoCAD plugins</title>
      <link>https://forums.autodesk.com/t5/net-forum/one-shared-dll-for-multiple-autocad-plugins/m-p/12218599#M7477</link>
      <description>&lt;P&gt;I have solved this by creating an own DLL-loader. This is a dll which loads all dll files in a specific path and order using the&amp;nbsp;Assembly.LoadFrom(filename); method.&lt;/P&gt;&lt;P&gt;Only the DLL-loader is loaded in the ApplicationPlugins - bundle folder. When this dll is loaded into AutoCAD, it start loading my project dll files. In my installation file I provide always the latest version of the shared dll's. This forces AutoCAD to always loads the latest version.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only disadvantage of this method is that you cannot simply remove or change methods from the shared dll, because they could be used by old applications.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 10:07:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/one-shared-dll-for-multiple-autocad-plugins/m-p/12218599#M7477</guid>
      <dc:creator>gleeuwdrent</dc:creator>
      <dc:date>2023-09-05T10:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: One shared dll for multiple AutoCAD plugins</title>
      <link>https://forums.autodesk.com/t5/net-forum/one-shared-dll-for-multiple-autocad-plugins/m-p/12223989#M7478</link>
      <description>&lt;P&gt;You could use reflection to load a dll in runtime. I use that to run Civil 3D functions in an application that also needs to run in vanilla AutoCAD.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 08:09:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/one-shared-dll-for-multiple-autocad-plugins/m-p/12223989#M7478</guid>
      <dc:creator>Anton_Huizinga</dc:creator>
      <dc:date>2023-09-07T08:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: One shared dll for multiple AutoCAD plugins</title>
      <link>https://forums.autodesk.com/t5/net-forum/one-shared-dll-for-multiple-autocad-plugins/m-p/12224447#M7479</link>
      <description>&lt;P&gt;Reconsidering your process, I think it is better to use a version in the reference ddl and namespace, for example, MyHelper0603.dll and main namespace MyNamespace0603. After an update it is easy to perform a search and replace, and each application will maintain the reference to the correct helper file.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 12:04:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/one-shared-dll-for-multiple-autocad-plugins/m-p/12224447#M7479</guid>
      <dc:creator>Anton_Huizinga</dc:creator>
      <dc:date>2023-09-07T12:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: One shared dll for multiple AutoCAD plugins</title>
      <link>https://forums.autodesk.com/t5/net-forum/one-shared-dll-for-multiple-autocad-plugins/m-p/12224803#M7480</link>
      <description>&lt;P&gt;Thank you, something similar crossed my mind but than I also thought of the drawback you mentioned so I gave it up. But will reconsider perhaps.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 14:10:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/one-shared-dll-for-multiple-autocad-plugins/m-p/12224803#M7480</guid>
      <dc:creator>vucic_tamara</dc:creator>
      <dc:date>2023-09-07T14:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: One shared dll for multiple AutoCAD plugins</title>
      <link>https://forums.autodesk.com/t5/net-forum/one-shared-dll-for-multiple-autocad-plugins/m-p/12224824#M7481</link>
      <description>&lt;P&gt;Thank you Anton, we also thought about this procedure but we hoped there is a more elegant way. So changing only the .dll name is not enough, namespaces also must be changed?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 14:16:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/one-shared-dll-for-multiple-autocad-plugins/m-p/12224824#M7481</guid>
      <dc:creator>vucic_tamara</dc:creator>
      <dc:date>2023-09-07T14:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: One shared dll for multiple AutoCAD plugins</title>
      <link>https://forums.autodesk.com/t5/net-forum/one-shared-dll-for-multiple-autocad-plugins/m-p/12224943#M7482</link>
      <description>I'm pretty sure. Once I used an Open Source Excel engine, but it was overruled by a newer version that was referenced in another plugin.&lt;BR /&gt;&lt;BR /&gt;But to be sure, you could set up a small test.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Sep 2023 14:48:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/one-shared-dll-for-multiple-autocad-plugins/m-p/12224943#M7482</guid>
      <dc:creator>Anton_Huizinga</dc:creator>
      <dc:date>2023-09-07T14:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: One shared dll for multiple AutoCAD plugins</title>
      <link>https://forums.autodesk.com/t5/net-forum/one-shared-dll-for-multiple-autocad-plugins/m-p/12226439#M7483</link>
      <description>&lt;P&gt;If you set your referenced assembly property 'Specific version' on False, you don't need to use an specific version. You only have to make sure that your classes and methods you are using in your project are available at runtime. So if you add a method to your shared dll, you have to make sure that the latest version of your helper dll is available. And you cannot remove methods.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gleeuwdrent_0-1694152297360.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1263795i24E4F4944EEE7D69/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gleeuwdrent_0-1694152297360.png" alt="gleeuwdrent_0-1694152297360.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 05:53:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/one-shared-dll-for-multiple-autocad-plugins/m-p/12226439#M7483</guid>
      <dc:creator>gleeuwdrent</dc:creator>
      <dc:date>2023-09-08T05:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: One shared dll for multiple AutoCAD plugins</title>
      <link>https://forums.autodesk.com/t5/net-forum/one-shared-dll-for-multiple-autocad-plugins/m-p/13427963#M7484</link>
      <description>&lt;P&gt;Did you find an elegant approach for these scenarios ?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 21:21:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/one-shared-dll-for-multiple-autocad-plugins/m-p/13427963#M7484</guid>
      <dc:creator>tarekahmed136</dc:creator>
      <dc:date>2025-04-15T21:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: One shared dll for multiple AutoCAD plugins</title>
      <link>https://forums.autodesk.com/t5/net-forum/one-shared-dll-for-multiple-autocad-plugins/m-p/13428244#M7485</link>
      <description>&lt;P&gt;I've used shared libraries often. I usually add a reference to them from projects that use them, where I set COPYLOCAL to false, and then deploy the shared dll in a known location that each project can reference. As far as different versions, if you mean the assembly version, I don't change it unless there is a breaking change, which is something I try to avoid at all costs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 02:28:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/one-shared-dll-for-multiple-autocad-plugins/m-p/13428244#M7485</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2025-04-16T02:28:12Z</dc:date>
    </item>
  </channel>
</rss>

