<?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: Adjusting 3.0 project to 3.1 SDK version in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/adjusting-3-0-project-to-3-1-sdk-version/m-p/1277951#M9648</link>
    <description>&lt;P&gt;The errors you are seeing are coming from the XAML Designer in Visual Studio.&amp;nbsp; Unfortunately, Microsoft introduced a bug into the Designer where the Designer fails to locate required assemblies (this issue was introduced when we switched from x86/x64 mixed builds to x64 builds).&amp;nbsp; When you close the XAML Designer these errors are cleared.&amp;nbsp; These errors do not have any effect on the actual build.&amp;nbsp; Also Visual Studio and MSBuild seem to have no problem finding those assemblies.&amp;nbsp; &amp;nbsp;I reported this issue to Microsoft but they claimed to have this issue fixed.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding your second question:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;EM&gt;Calling the dockpane from one of the buttons in the ribbon though, only leads to a busy system and the dockpane is never shown&lt;/EM&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You need to step through your code to see what's going on.&amp;nbsp; Usually when you click on a show dockpane button the Onclick method is called in the ViewModel file created by the dockpane item template.&amp;nbsp; Try to set a breakpoint there, if that works, set breakpoints in you dockpane constructor etc.&amp;nbsp;&lt;BR /&gt;In general,&amp;nbsp;these types of errors occur after partially renaming ids or classes, or sometimes multiple open instances of ArcGIS Pro prevent the add-in from being installed properly.&amp;nbsp; If you create a new add-in and then add item templates (like dockpanes etc.) to the project without modifying any files the add-in should work properly and open the dockpane, so i would look at the modification you made to the project after you used the item templates.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you find a specific code snippet that is causing the hang you can share it here and we can help you out.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Apr 2023 18:58:41 GMT</pubDate>
    <dc:creator>Wolf</dc:creator>
    <dc:date>2023-04-12T18:58:41Z</dc:date>
    <item>
      <title>Adjusting 3.0 project to 3.1 SDK version</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/adjusting-3-0-project-to-3-1-sdk-version/m-p/1277225#M9630</link>
      <description>&lt;P&gt;My old addin (coming from 2.9 and migrated into 3.0) needs some brushing up and I am getting some XDG errors from XAML file.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TomGeo_0-1681208085494.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/67641i8D3E8DDD65583D7A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TomGeo_0-1681208085494.png" alt="TomGeo_0-1681208085494.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;All the assemblies are where I would expect them to be: C:\Program Files\ArcGIS\Pro\bin or at C:\Program Files\ArcGIS\Pro\bin\Extensions\DesktopExtensions&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TomGeo_1-1681208385576.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/67643iB6CA7B873EF3B9A5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TomGeo_1-1681208385576.png" alt="TomGeo_1-1681208385576.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tried SDK utilities to fix Pro references, but it didn't help. I cleaned the solution, deleted the bin and obj directories of the solution.&lt;/P&gt;&lt;P&gt;Here the error codes from above with the lines the error is encountered at&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="45.39641943734016%"&gt;XDG0023&lt;/TD&gt;&lt;TD width="54.60358056265984%"&gt;d:DataContext="{d:DesignInstance Type=ui:PublicDataDockpaneViewModel}"&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="45.39641943734016%"&gt;XDG0003&lt;/TD&gt;&lt;TD width="54.60358056265984%"&gt;&amp;lt;ResourceDictionary.MergedDictionaries&amp;gt;&lt;BR /&gt;&amp;lt;extensions:DesignOnlyResourceDictionary Source="pack://application:,,,/ArcGIS.Desktop.Framework;component\Themes\Default.xaml" /&amp;gt;&lt;BR /&gt;&amp;lt;/ResourceDictionary.MergedDictionaries&amp;gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="45.39641943734016%"&gt;XDG0010&lt;/TD&gt;&lt;TD width="54.60358056265984%"&gt;&amp;lt;ResourceDictionary.MergedDictionaries&amp;gt;&lt;BR /&gt;&amp;lt;extensions:DesignOnlyResourceDictionary Source="pack://application:,,,/ArcGIS.Desktop.Framework;component\Themes\Default.xaml" /&amp;gt;&lt;BR /&gt;&amp;lt;/ResourceDictionary.MergedDictionaries&amp;gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="45.39641943734016%"&gt;XDG0005&lt;/TD&gt;&lt;TD width="54.60358056265984%"&gt;&amp;lt;StackPanel Orientation="Horizontal"&amp;gt;&lt;BR /&gt;&amp;lt;Image Source="pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/GenericRun16.png" /&amp;gt;&lt;BR /&gt;&amp;lt;/StackPanel&amp;gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="45.39641943734016%"&gt;XDG0005&lt;/TD&gt;&lt;TD width="54.60358056265984%"&gt;&amp;lt;StackPanel Orientation="Horizontal"&amp;gt;&lt;BR /&gt;&amp;lt;Image Source="pack://application:,,,/ArcGIS.Desktop.Resources;component/images/genericreset16.png" /&amp;gt;&lt;BR /&gt;&amp;lt;/StackPanel&amp;gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Since the second error is pointing at an issue with the Default.xaml file I would assume the two XDG0005 are following errors resulting from the XDG0010.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 10:55:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/adjusting-3-0-project-to-3-1-sdk-version/m-p/1277225#M9630</guid>
      <dc:creator>TomGeo</dc:creator>
      <dc:date>2023-04-11T10:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Adjusting 3.0 project to 3.1 SDK version</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/adjusting-3-0-project-to-3-1-sdk-version/m-p/1277393#M9634</link>
      <description>Just a comment regarding Visual Studio 2022. The new version of VS treats many 'warning' messages as errors that stop a build. In VS these same issues were treated as warnings or informational only so you still could get a clean build. Check the error messages and see if you can change your build settings to ignore XDG0005 -them if they appear in consequential.&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Apr 2023 16:15:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/adjusting-3-0-project-to-3-1-sdk-version/m-p/1277393#M9634</guid>
      <dc:creator>RichardDaniels</dc:creator>
      <dc:date>2023-04-11T16:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Adjusting 3.0 project to 3.1 SDK version</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/adjusting-3-0-project-to-3-1-sdk-version/m-p/1277667#M9644</link>
      <description>&lt;P&gt;The weird thing is, these errors do not stop the build. The addin is build and deployed.&lt;BR /&gt;When ArcGIS Pro starts, the menu and its ribbon are created. The ribbon contains the groups and buttons it should have...&lt;BR /&gt;Calling the dockpane from on of the buttons in the ribbon though, only leads to a busy system and the dockpane is never shown.&lt;BR /&gt;At the same time I cannot see anything in the debug session that there is an error, or what is keeping the system from showing the dockpane.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 07:46:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/adjusting-3-0-project-to-3-1-sdk-version/m-p/1277667#M9644</guid>
      <dc:creator>TomGeo</dc:creator>
      <dc:date>2023-04-12T07:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Adjusting 3.0 project to 3.1 SDK version</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/adjusting-3-0-project-to-3-1-sdk-version/m-p/1277951#M9648</link>
      <description>&lt;P&gt;The errors you are seeing are coming from the XAML Designer in Visual Studio.&amp;nbsp; Unfortunately, Microsoft introduced a bug into the Designer where the Designer fails to locate required assemblies (this issue was introduced when we switched from x86/x64 mixed builds to x64 builds).&amp;nbsp; When you close the XAML Designer these errors are cleared.&amp;nbsp; These errors do not have any effect on the actual build.&amp;nbsp; Also Visual Studio and MSBuild seem to have no problem finding those assemblies.&amp;nbsp; &amp;nbsp;I reported this issue to Microsoft but they claimed to have this issue fixed.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding your second question:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;EM&gt;Calling the dockpane from one of the buttons in the ribbon though, only leads to a busy system and the dockpane is never shown&lt;/EM&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You need to step through your code to see what's going on.&amp;nbsp; Usually when you click on a show dockpane button the Onclick method is called in the ViewModel file created by the dockpane item template.&amp;nbsp; Try to set a breakpoint there, if that works, set breakpoints in you dockpane constructor etc.&amp;nbsp;&lt;BR /&gt;In general,&amp;nbsp;these types of errors occur after partially renaming ids or classes, or sometimes multiple open instances of ArcGIS Pro prevent the add-in from being installed properly.&amp;nbsp; If you create a new add-in and then add item templates (like dockpanes etc.) to the project without modifying any files the add-in should work properly and open the dockpane, so i would look at the modification you made to the project after you used the item templates.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you find a specific code snippet that is causing the hang you can share it here and we can help you out.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 18:58:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/adjusting-3-0-project-to-3-1-sdk-version/m-p/1277951#M9648</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2023-04-12T18:58:41Z</dc:date>
    </item>
  </channel>
</rss>

