<?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: ESRI sample errors when loading into VS in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/esri-sample-errors-when-loading-into-vs/m-p/1223965#M8939</link>
    <description>&lt;P&gt;First thing to check are your assembly references. Check under Dependencies\Assemblies. A common issue with sharing addin code is that the assembly reference paths &lt;STRIKE&gt;are&lt;/STRIKE&gt;&amp;nbsp;can be different from machine to machine.&lt;/P&gt;&lt;P&gt;If this is the problem then simply change the assembly locations in your copy of the project to the correct location based on the install path of _your_ local ArcGIS Pro.&lt;/P&gt;&lt;P&gt;We also provide a utility that will do this for you automatically. It is included as part of the 'ArcGIS Pro SDK Utilities` visx. Install that (if u haven't already) and when u right click in the VS project window there will be a "Pro Fix References" menu option. Simply click on it to have all assembly paths, etc. be fixed automatically.&lt;/P&gt;&lt;P&gt;More information here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki#arcgis-pro-sdk-for-net-utilities" target="_blank" rel="noopener"&gt;https://github.com/Esri/arcgis-pro-sdk/wiki#arcgis-pro-sdk-for-net-utilities&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Oct 2022 18:31:06 GMT</pubDate>
    <dc:creator>CharlesMacleod</dc:creator>
    <dc:date>2022-10-20T18:31:06Z</dc:date>
    <item>
      <title>ESRI sample errors when loading into VS</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/esri-sample-errors-when-loading-into-vs/m-p/1223944#M8938</link>
      <description>&lt;P&gt;New to VS and SDK. I want to load this ESRI example &lt;A href="https://developers.arcgis.com/documentation/arcgis-add-ins-and-automation/arcgis-pro/tutorials/build-a-map-layout/" target="_self"&gt;Link&lt;/A&gt;&amp;nbsp;into Visual Studio regarding custom map layouts. I downloaded Visual Studio 2022 and installed the ArcGIS Pro SDK extension from the online store. There are a few classes that error when trying to build. Shouldnt an ESRI sample be 100% compatible if Visual Studio is up to date?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 18:31:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/esri-sample-errors-when-loading-into-vs/m-p/1223944#M8938</guid>
      <dc:creator>JohnnyHarley12</dc:creator>
      <dc:date>2022-10-20T18:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: ESRI sample errors when loading into VS</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/esri-sample-errors-when-loading-into-vs/m-p/1223965#M8939</link>
      <description>&lt;P&gt;First thing to check are your assembly references. Check under Dependencies\Assemblies. A common issue with sharing addin code is that the assembly reference paths &lt;STRIKE&gt;are&lt;/STRIKE&gt;&amp;nbsp;can be different from machine to machine.&lt;/P&gt;&lt;P&gt;If this is the problem then simply change the assembly locations in your copy of the project to the correct location based on the install path of _your_ local ArcGIS Pro.&lt;/P&gt;&lt;P&gt;We also provide a utility that will do this for you automatically. It is included as part of the 'ArcGIS Pro SDK Utilities` visx. Install that (if u haven't already) and when u right click in the VS project window there will be a "Pro Fix References" menu option. Simply click on it to have all assembly paths, etc. be fixed automatically.&lt;/P&gt;&lt;P&gt;More information here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki#arcgis-pro-sdk-for-net-utilities" target="_blank" rel="noopener"&gt;https://github.com/Esri/arcgis-pro-sdk/wiki#arcgis-pro-sdk-for-net-utilities&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 18:31:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/esri-sample-errors-when-loading-into-vs/m-p/1223965#M8939</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2022-10-20T18:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: ESRI sample errors when loading into VS</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/esri-sample-errors-when-loading-into-vs/m-p/1225122#M8951</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/516024"&gt;@JohnnyHarley12&lt;/a&gt;&amp;nbsp;, it looks like the instructions are missing an important step after you insert the layout construction code into the OnClick method.&amp;nbsp; &amp;nbsp;You can let Visual Studio fix the problem for you by right clicking on the error and selecting "Quick Actions and Refactorings ..."&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wolf_0-1666699317771.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/54347i48115C1AA3DB1C71/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wolf_0-1666699317771.png" alt="Wolf_0-1666699317771.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Or you can simply fix the OnClick method definition to this:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;protected override async void OnClick()&lt;/LI-CODE&gt;&lt;P&gt;We'll fix the issue for the next release.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 12:03:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/esri-sample-errors-when-loading-into-vs/m-p/1225122#M8951</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2022-10-25T12:03:21Z</dc:date>
    </item>
  </channel>
</rss>

