<?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 How to embed external reference (merge DLLs into one) in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/how-to-embed-external-reference-merge-dlls-into-one/m-p/13287044#M1003</link>
    <description>&lt;P&gt;Mabye more of a general C# question, but how to embed other DLLs into single one to be loaded into Autocad, if possible? I tried AssemblyResolve, but don't know where to put it in my code. So far I have a simple public partial class for WinForm with few button click events and one class for code. I want to merge one reference assembly added through NuGet to my release dll so I don't have multiple dlls. I also tried ILMerge, but it didn-t work.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jan 2025 20:33:16 GMT</pubDate>
    <dc:creator>tbarana</dc:creator>
    <dc:date>2025-01-28T20:33:16Z</dc:date>
    <item>
      <title>How to embed external reference (merge DLLs into one)</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-embed-external-reference-merge-dlls-into-one/m-p/13287044#M1003</link>
      <description>&lt;P&gt;Mabye more of a general C# question, but how to embed other DLLs into single one to be loaded into Autocad, if possible? I tried AssemblyResolve, but don't know where to put it in my code. So far I have a simple public partial class for WinForm with few button click events and one class for code. I want to merge one reference assembly added through NuGet to my release dll so I don't have multiple dlls. I also tried ILMerge, but it didn-t work.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 20:33:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-embed-external-reference-merge-dlls-into-one/m-p/13287044#M1003</guid>
      <dc:creator>tbarana</dc:creator>
      <dc:date>2025-01-28T20:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed external reference (merge DLLs into one)</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-embed-external-reference-merge-dlls-into-one/m-p/13302718#M1004</link>
      <description>&lt;P&gt;There is a similar topic here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/net/using-ilmerge-to-get-one-assembly-from-multiple/m-p/12222532#M78522" target="_blank"&gt;https://forums.autodesk.com/t5/net/using-ilmerge-to-get-one-assembly-from-multiple/m-p/12222532#M78522&lt;/A&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;EM&gt;My previous answer:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I use&amp;nbsp;&lt;STRONG&gt;ILRepack.Lib.MSBuild.Task&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;by RBSoft instead of ILMerge to combine .dll files into one DLL&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resource.Embedder&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;by Marc Stan to embed translations files&amp;nbsp; into the above combined .DLL file&lt;/P&gt;&lt;P&gt;You can get these packages from Nuget Packages Manager in Visual studio&lt;/P&gt;&lt;P&gt;With these packages installed, the combination process is automatically done when you build a project.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 04:07:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-embed-external-reference-merge-dlls-into-one/m-p/13302718#M1004</guid>
      <dc:creator>ntclmain</dc:creator>
      <dc:date>2025-02-06T04:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed external reference (merge DLLs into one)</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-embed-external-reference-merge-dlls-into-one/m-p/13631271#M1005</link>
      <description>&lt;P&gt;I'm coming back to this now and trying to use mentioned method, but I'm getting errors, first if acad references Copy Local is set to false, I get "Failed to resolve assembly: 'accoremgd, Version=24.0.0.0, Culture=neutral, PublicKeyToken=null'", if I set it to true so it copies the reference, I get "Failed to load assembly with Zero PeKind: bin\x64\Release\accoremgd.dll", which is a ILRepack error but I can't figure out the solution, any help with that maybe?&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 05:54:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-embed-external-reference-merge-dlls-into-one/m-p/13631271#M1005</guid>
      <dc:creator>tbarana</dc:creator>
      <dc:date>2025-05-15T05:54:29Z</dc:date>
    </item>
  </channel>
</rss>

