<?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: .NET 8 Migration | System.Drawing.Common Error in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/net-8-migration-system-drawing-common-error/m-p/13834926#M85845</link>
    <description>&lt;P&gt;&lt;A title=".NET 9.0 nuget hell guidance." href="https://github.com/dotnet/core/issues/9820" target="_blank" rel="noopener"&gt;Dll Hell&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Oct 2025 20:07:09 GMT</pubDate>
    <dc:creator>Izhar_Azati</dc:creator>
    <dc:date>2025-10-02T20:07:09Z</dc:date>
    <item>
      <title>.NET 8 Migration | System.Drawing.Common Error</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-8-migration-system-drawing-common-error/m-p/13811252#M85753</link>
      <description>&lt;P&gt;I've migrated a small ContextMenu app I've been using since 2010 to .NET 8 which now uses a System.Drawing.Common package in lieu of previous .NET Framework's assembly reference to same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I skipped 2025, so am still new to .NET 8, NuGet, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The app works great... for me, on multiple workstations, that each have VS installed... but I've had two folks I've shared the app with for a long time report that it's crashing on their end, and the rawdata-t2.pb crash reports both reference the exact same exception &amp;amp; PublicKeyToken code (at completely different companies), so I must have done something wrong:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;System.IO.FileNotFoundException: Could not load file or assembly 'System.Drawing.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
File name: 'System.Drawing.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;System.Drawing.Common 9.0.4 NuGet was used to build the app when they provided the crash reports. I've since upgraded that to 9.0.9 as VS said there was an update... but both crash reports list 9.0.0.0 (despite 9.0.4 being used to build?), so am I using the wrong NuGet, or is it that they just need an update?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The app is built for 2026 &amp;amp; 2026.1, so should work with OOTB dependencies.&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;The app uses System.Drawing for Icon &amp;amp; Bitmap types to populate a ContextMenu's MenuItems.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;More specifically, since Autodesk deprecated Autodesk.AutoCAD.Internal.Utils.GetAcadResourceIcon() +3 years ago, I'd rolled my own extension method. Autodesk's implementation was limited to just Main cui, so when I wrote it, I enhanced it to also cull Enterprise CUI (if anyone wants it, I'll share).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, I've not had any issue with the extension method code itself, only with the app not loading properly and/or crashing due to System.Drawing.Common which is coming from NuGet package.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advise.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Sep 2025 15:11:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-8-migration-system-drawing-common-error/m-p/13811252#M85753</guid>
      <dc:creator>BlackBox_</dc:creator>
      <dc:date>2025-09-15T15:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: .NET 8 Migration | System.Drawing.Common Error</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-8-migration-system-drawing-common-error/m-p/13811404#M85755</link>
      <description>&lt;P&gt;This solved it - Apparently AutoCAD 2026 products are relegated to System.Drawing.Common v8 - unless you've installed newer!? - which doesn't seem to be documented on system requirements page.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A new build using 8.0.20 package works fine now on new machine with clean install; thanks,&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11804902"&gt;@Victor.Tuguinay&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beer_mug:"&gt;🍺&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11804902"&gt;@Victor.Tuguinay&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I think i solved my own problem. I totally removed the System.Drawing.Common (9.0.0) then installed version 8.0.13 and the form loaded as expected. There seem to be a problem when using version 9. Could also be a compatibility issue between Inventor 2025 and the latest versions of the package.&lt;BR /&gt;Inventor 2025 (and its runtime environment) might have been built and tested with an earlier version of System.Drawing.Common, so version 9.x may introduce changes that aren’t compatible or expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Sep 2025 18:50:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-8-migration-system-drawing-common-error/m-p/13811404#M85755</guid>
      <dc:creator>BlackBox_</dc:creator>
      <dc:date>2025-09-15T18:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: .NET 8 Migration | System.Drawing.Common Error</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-8-migration-system-drawing-common-error/m-p/13834556#M85842</link>
      <description>&lt;P&gt;My conclusion is not to rush and install a new version of &lt;STRONG&gt;Nuget&lt;/STRONG&gt; just because VS shows that there is an update.&lt;BR /&gt;Stay with the minimum version that works for you.&lt;BR /&gt;It was uphill battle to find the right &lt;STRONG&gt;Nuget&lt;/STRONG&gt;, for example, the latest version of&amp;nbsp;&lt;STRONG&gt;System.Diagnostics.EventLog&lt;/STRONG&gt;&lt;BR /&gt;This caused that at the stage of NETLOAD it flew and I didn't know why.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Oct 2025 14:34:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-8-migration-system-drawing-common-error/m-p/13834556#M85842</guid>
      <dc:creator>Izhar_Azati</dc:creator>
      <dc:date>2025-10-02T14:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: .NET 8 Migration | System.Drawing.Common Error</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-8-migration-system-drawing-common-error/m-p/13834793#M85844</link>
      <description>&lt;P&gt;FWIW, I didn't rush to install anything - I simply upgraded my .NET Framework app to .NET 8 and the NuGet was already associated with the new project, or it prompted me to include it on first load (and I simply didn't notice the NuGet version). Don't recall.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While that was unfortunate, the real issue to my mind is that compiling with a newer NuGet build actually works just fine (in my case), so long as you've got that version installed on a given machine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I incorrectly expected Autodesk to disallow an assembly that has incompatible dependencies from even loading to begin with.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Oct 2025 10:29:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-8-migration-system-drawing-common-error/m-p/13834793#M85844</guid>
      <dc:creator>BlackBox_</dc:creator>
      <dc:date>2025-10-03T10:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: .NET 8 Migration | System.Drawing.Common Error</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-8-migration-system-drawing-common-error/m-p/13834926#M85845</link>
      <description>&lt;P&gt;&lt;A title=".NET 9.0 nuget hell guidance." href="https://github.com/dotnet/core/issues/9820" target="_blank" rel="noopener"&gt;Dll Hell&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Oct 2025 20:07:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-8-migration-system-drawing-common-error/m-p/13834926#M85845</guid>
      <dc:creator>Izhar_Azati</dc:creator>
      <dc:date>2025-10-02T20:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: .NET 8 Migration | System.Drawing.Common Error</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-8-migration-system-drawing-common-error/m-p/14013123#M86540</link>
      <description>&lt;P&gt;I do think that the real solution can only happen on AutoCAD side, I've opened up a ticket, so please consider giving it an upvote&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/civil-3d-ideas/support-different-assemblyloadcontext-internally-within-autocad/idc-p/14011986" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/civil-3d-ideas/support-different-assemblyloadcontext-internally-withi...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's in Civil 3D ideas beacuse AutoCAD doesn't have a similar ideas forum.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2026 03:15:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-8-migration-system-drawing-common-error/m-p/14013123#M86540</guid>
      <dc:creator>soonhui</dc:creator>
      <dc:date>2026-02-11T03:15:19Z</dc:date>
    </item>
  </channel>
</rss>

