<?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: Could not load file or assembly 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/could-not-load-file-or-assembly-system-drawing/m-p/1331278#M10447</link>
    <description>&lt;P&gt;Do not think this would apply to us and we are using Windows &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Sep 2023 21:17:01 GMT</pubDate>
    <dc:creator>DavisMiller</dc:creator>
    <dc:date>2023-09-21T21:17:01Z</dc:date>
    <item>
      <title>Could not load file or assembly 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/could-not-load-file-or-assembly-system-drawing/m-p/1331240#M10440</link>
      <description>&lt;P&gt;All, my team is having issues migrating a Pro SDK solution from Pro 2.8 to Pro 3.1. We have ran the conversion tool with the SDK but we are still seeing assembly build errors. Does anyone have any ideas on how to get our assemblies happy? The specific error above suggests it cannot find the System.Drawing.Common assembly but we have confirmed it does exist at the right version.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Davis Miller&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 19:42:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/could-not-load-file-or-assembly-system-drawing/m-p/1331240#M10440</guid>
      <dc:creator>DavisMiller</dc:creator>
      <dc:date>2023-09-21T19:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Could not load file or assembly 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/could-not-load-file-or-assembly-system-drawing/m-p/1331244#M10441</link>
      <description>At .Net 6.0 System.Drawing.Common is not as common as you may think. Ensure Miorosoft .Net Runtime and Microsoft .Net Desktop Runtime are installed on the build machine. Current version is 6.0.21.&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Sep 2023 19:57:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/could-not-load-file-or-assembly-system-drawing/m-p/1331244#M10441</guid>
      <dc:creator>RichardDaniels</dc:creator>
      <dc:date>2023-09-21T19:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Could not load file or assembly 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/could-not-load-file-or-assembly-system-drawing/m-p/1331251#M10442</link>
      <description>&lt;P&gt;Ok we will try that thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Davis Miller&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 20:08:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/could-not-load-file-or-assembly-system-drawing/m-p/1331251#M10442</guid>
      <dc:creator>DavisMiller</dc:creator>
      <dc:date>2023-09-21T20:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Could not load file or assembly 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/could-not-load-file-or-assembly-system-drawing/m-p/1331271#M10445</link>
      <description>&lt;P&gt;Also, with .Net 6 there is a breaking change.&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/6.0/system-drawing-common-windows-only" target="_blank"&gt;Breaking change: System.Drawing.Common only supported on Windows - .NET | Microsoft Learn&lt;/A&gt;. In short, .Net Core does &lt;STRONG&gt;not&lt;/STRONG&gt; include System.Drawing.Common but .Net Framework does.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 20:46:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/could-not-load-file-or-assembly-system-drawing/m-p/1331271#M10445</guid>
      <dc:creator>RichardDaniels</dc:creator>
      <dc:date>2023-09-21T20:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Could not load file or assembly 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/could-not-load-file-or-assembly-system-drawing/m-p/1331276#M10446</link>
      <description>&lt;P&gt;We have confirmed that both&amp;nbsp;&lt;SPAN&gt;Microsoft .Net Runtime and Microsoft .Net Desktop Runtime are installed and we are still getting the same error &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 21:09:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/could-not-load-file-or-assembly-system-drawing/m-p/1331276#M10446</guid>
      <dc:creator>DavisMiller</dc:creator>
      <dc:date>2023-09-21T21:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Could not load file or assembly 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/could-not-load-file-or-assembly-system-drawing/m-p/1331278#M10447</link>
      <description>&lt;P&gt;Do not think this would apply to us and we are using Windows &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 21:17:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/could-not-load-file-or-assembly-system-drawing/m-p/1331278#M10447</guid>
      <dc:creator>DavisMiller</dc:creator>
      <dc:date>2023-09-21T21:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Could not load file or assembly 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/could-not-load-file-or-assembly-system-drawing/m-p/1331383#M10452</link>
      <description>&lt;P&gt;I am having the exact same problem with System.Text.Json. Same error message and PublicKeyToken. It also happened after updating an AddIn from 2.8 to 3.1. We confirmed the dependency is installed and in the AddIn AssemblyCache. No problems during build time, the error message only pops up after opening Pro.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PauJuan_0-1695377799469.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/81356iC7678B4B8D11AFF6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PauJuan_0-1695377799469.png" alt="PauJuan_0-1695377799469.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;We think it is caused by the assembly being a dependency of another one, rather than being called directly. This is preventing it from being packaged with the AddIn dll. Could this be the case? Is there a way to specify hidden dependencies in the .csproj file?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 10:20:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/could-not-load-file-or-assembly-system-drawing/m-p/1331383#M10452</guid>
      <dc:creator>PauJuan</dc:creator>
      <dc:date>2023-09-22T10:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Could not load file or assembly 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/could-not-load-file-or-assembly-system-drawing/m-p/1331501#M10457</link>
      <description>&lt;P&gt;If you are using Visual Studio 2022 to build your ArcGIS Pro 3.x package and include a reference to a NuGet packet as a resource you can have problems. If you install the NuGet package on your computer and then reference the DLLs on disk the NuGet references will work. However, if you reference (i.e., add) and NuGet package itself (in Visual Studio), you will receive an XAML error showing, "Error: Could not load file or assembly 'ArcGIS.Desktop.Framework, Culture=neutral' or one of its dependencies at compile time.&lt;BR /&gt;After upgrading a 2.x add-in to 3.x in Visual Studio check your .csproj file. Recommendation on another post is to removing the False attribute for each DLL in the csproj file. (see Solved: Re: Extensions NuGet package not loading in VS 202... - Esri Community&amp;lt;&amp;gt;).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note - I first ran across this issue when trying to convert my ArcGIS Pro 2.9 (Visual Studio 2019) project to use new&amp;nbsp;&lt;SPAN&gt;webview2&amp;nbsp;control in Visual Studio 2022.&amp;nbsp;The solution was to search for webview2 in NuGet, and then install it.&amp;nbsp;You install the&amp;nbsp;&lt;STRONG&gt;Microsoft.Web.WebView2&lt;/STRONG&gt;&amp;nbsp;SDK NuGet package for into the current project.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 16:38:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/could-not-load-file-or-assembly-system-drawing/m-p/1331501#M10457</guid>
      <dc:creator>RichardDaniels</dc:creator>
      <dc:date>2023-09-22T16:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Could not load file or assembly 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/could-not-load-file-or-assembly-system-drawing/m-p/1331508#M10458</link>
      <description>&lt;P&gt;Thanks Richard. Could you please show an example of how to reference the DLLs on disk directly?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 15:51:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/could-not-load-file-or-assembly-system-drawing/m-p/1331508#M10458</guid>
      <dc:creator>PauJuan</dc:creator>
      <dc:date>2023-09-22T15:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Could not load file or assembly 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/could-not-load-file-or-assembly-system-drawing/m-p/1331521#M10459</link>
      <description>&lt;P&gt;Thanks Richard our team will try that &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 16:32:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/could-not-load-file-or-assembly-system-drawing/m-p/1331521#M10459</guid>
      <dc:creator>DavisMiller</dc:creator>
      <dc:date>2023-09-22T16:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Could not load file or assembly 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/could-not-load-file-or-assembly-system-drawing/m-p/1332882#M10482</link>
      <description>&lt;P&gt;We got our solution working by creating a new project with ArcPro3.1 and the 3.1 SDK and then manually moving WPF forms over manually from our old 2.8 solution one at a time. Then editing the namespace to match the new solution on the old forms. That was the only way we could get the error to go away. Hope this helps you as well. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Basically the conversion tool was not helpful in our case.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 13:00:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/could-not-load-file-or-assembly-system-drawing/m-p/1332882#M10482</guid>
      <dc:creator>DavisMiller</dc:creator>
      <dc:date>2023-09-27T13:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Could not load file or assembly 'System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/could-not-load-file-or-assembly-system-drawing/m-p/1361378#M10875</link>
      <description>&lt;P&gt;Thanks Davis. In our case the solution was to downgrade both Microsoft.Extensions.Configuration.Json and System.Text.Json to 6.0.0. Despite that the NuGet manager recommends using 7.0.0 for both of them when targeting .NET6, and that we are using&amp;nbsp;Microsoft.Extensions.Configuration at 7.0.0 as well. Somehow this is the only setup that works.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2023 14:42:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/could-not-load-file-or-assembly-system-drawing/m-p/1361378#M10875</guid>
      <dc:creator>PauJuan</dc:creator>
      <dc:date>2023-12-15T14:42:07Z</dc:date>
    </item>
  </channel>
</rss>

