<?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: Reference Button Class in Different Assembly in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/reference-button-class-in-different-assembly/m-p/1020170#M6074</link>
    <description>&lt;P&gt;Thanks for the link&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/201161"&gt;@KirkKuykendall1&lt;/a&gt;.&amp;nbsp; I was hoping we'd be able to do something without using an add-in.&amp;nbsp; Or at least have the button classes in a non-addin project that can be referenced from the add-in's config.daml file.&amp;nbsp; There is an assembly attribute for a button but specifying the other assembly doesn't seem to make it work.&lt;/P&gt;&lt;P&gt;ArcGISpro.dll (non-addin assembly where button classes are located)&lt;/P&gt;&lt;P&gt;ArcgISPro.UI.dll (add-in project with config.daml file)&lt;/P&gt;&lt;P&gt;I would like to reference a button class defined in ArcGISPro.dll in the ArcGISPro.UI.dll&lt;/P&gt;&lt;P&gt;The goal here is to keep duplicate code to an absolute minimum.&amp;nbsp; Why have a button class called "EditGeoTablesButton" in both products when it can be defined once in ArcGISPro.dll, referenced via a button definition in ArcGISPro.UI.dll and then that button used in the two product's config.daml files.&amp;nbsp; The two products simply reference the button in the add-in, the add-in config.daml file finds the button class in ArcGISPro.dll.&lt;/P&gt;&lt;P&gt;Kris&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jan 2021 18:38:00 GMT</pubDate>
    <dc:creator>KrisCulin</dc:creator>
    <dc:date>2021-01-26T18:38:00Z</dc:date>
    <item>
      <title>Reference Button Class in Different Assembly</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/reference-button-class-in-different-assembly/m-p/1020131#M6071</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We currently have two products that integrate with ArcGIS Pro.&amp;nbsp; There is a lot of feature overlap and to avoid duplicating code, we'd like to share button classes.&lt;/P&gt;&lt;P&gt;Each product is setup as a configuration (using the /config:&amp;lt;name&amp;gt; command line parameter) and each has its own config.daml file.&lt;/P&gt;&lt;P&gt;We currently have an add-in project with a config.daml file that defines shared buttons and references classes in the same project. These shared buttons are referenced from the config.daml file in the two product configurations.&lt;/P&gt;&lt;P&gt;However, we'd like to have these shared button classes in a project that is *not* an add-in project.&amp;nbsp; Is this possible?&lt;/P&gt;&lt;P&gt;We understand that images must be in an add-in which is fine.&amp;nbsp; It's the buttons, menus, conditions, etc. that we need to share but would like not to be in an add-in.&lt;/P&gt;&lt;P&gt;If you need any clarification, please ask.&lt;/P&gt;&lt;P&gt;TIA,&lt;/P&gt;&lt;P&gt;Kris&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 17:26:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/reference-button-class-in-different-assembly/m-p/1020131#M6071</guid>
      <dc:creator>KrisCulin</dc:creator>
      <dc:date>2021-01-26T17:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Reference Button Class in Different Assembly</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/reference-button-class-in-different-assembly/m-p/1020148#M6072</link>
      <description>&lt;P&gt;Have you tried putting shared code into an assembly that loads first?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-pro/uncategorized/manage-arcgis-pro-add-in-loading/" target="_blank"&gt;https://www.esri.com/arcgis-blog/products/arcgis-pro/uncategorized/manage-arcgis-pro-add-in-loading/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 17:52:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/reference-button-class-in-different-assembly/m-p/1020148#M6072</guid>
      <dc:creator>KirkKuykendall1</dc:creator>
      <dc:date>2021-01-26T17:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Reference Button Class in Different Assembly</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/reference-button-class-in-different-assembly/m-p/1020170#M6074</link>
      <description>&lt;P&gt;Thanks for the link&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/201161"&gt;@KirkKuykendall1&lt;/a&gt;.&amp;nbsp; I was hoping we'd be able to do something without using an add-in.&amp;nbsp; Or at least have the button classes in a non-addin project that can be referenced from the add-in's config.daml file.&amp;nbsp; There is an assembly attribute for a button but specifying the other assembly doesn't seem to make it work.&lt;/P&gt;&lt;P&gt;ArcGISpro.dll (non-addin assembly where button classes are located)&lt;/P&gt;&lt;P&gt;ArcgISPro.UI.dll (add-in project with config.daml file)&lt;/P&gt;&lt;P&gt;I would like to reference a button class defined in ArcGISPro.dll in the ArcGISPro.UI.dll&lt;/P&gt;&lt;P&gt;The goal here is to keep duplicate code to an absolute minimum.&amp;nbsp; Why have a button class called "EditGeoTablesButton" in both products when it can be defined once in ArcGISPro.dll, referenced via a button definition in ArcGISPro.UI.dll and then that button used in the two product's config.daml files.&amp;nbsp; The two products simply reference the button in the add-in, the add-in config.daml file finds the button class in ArcGISPro.dll.&lt;/P&gt;&lt;P&gt;Kris&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 18:38:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/reference-button-class-in-different-assembly/m-p/1020170#M6074</guid>
      <dc:creator>KrisCulin</dc:creator>
      <dc:date>2021-01-26T18:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Reference Button Class in Different Assembly</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/reference-button-class-in-different-assembly/m-p/1020178#M6075</link>
      <description>&lt;P&gt;Have you considered installing into the GAC?&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dotnet/framework/app-domains/working-with-assemblies-and-the-gac" target="_blank"&gt;https://docs.microsoft.com/en-us/dotnet/framework/app-domains/working-with-assemblies-and-the-gac&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 18:52:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/reference-button-class-in-different-assembly/m-p/1020178#M6075</guid>
      <dc:creator>KirkKuykendall1</dc:creator>
      <dc:date>2021-01-26T18:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Reference Button Class in Different Assembly</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/reference-button-class-in-different-assembly/m-p/1020180#M6076</link>
      <description>&lt;P&gt;That is currently not an option at this time.&lt;/P&gt;&lt;P&gt;Kris&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 18:54:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/reference-button-class-in-different-assembly/m-p/1020180#M6076</guid>
      <dc:creator>KrisCulin</dc:creator>
      <dc:date>2021-01-26T18:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Reference Button Class in Different Assembly</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/reference-button-class-in-different-assembly/m-p/1020305#M6078</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/213506"&gt;@KrisCulin&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;It is possible to have your custom button class in your custom class library.&lt;/P&gt;&lt;P&gt;How I have done before is&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Make sure shared class library has ArcGIS pro nugget package reference. I follow this guide and sample&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/19a330dcbe57cdbbde7f0762e9321aa7b411c827/Map-Exploration/TimeNavigation" target="_blank" rel="noopener"&gt;arcgis-pro-sdk-community-samples/Map-Exploration/TimeNavigation at 19a330dcbe57cdbbde7f0762e9321aa7b411c827 · Esri/arcgis-pro-sdk-community-samples · GitHub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProGuide-Ribbon-Tabs-and-Groups" target="_blank" rel="noopener"&gt;ProGuide Ribbon Tabs and Groups · Esri/arcgis-pro-sdk Wiki · GitHub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&lt;A href="https://github.com/esri/arcgis-pro-sdk/wiki/ProGuide-ArcGIS-Pro-Extensions-NuGet" target="_blank" rel="noopener"&gt;ProGuide ArcGIS Pro Extensions NuGet · Esri/arcgis-pro-sdk Wiki · GitHub&lt;/A&gt;&amp;nbsp;, I make nugget package management as package referece&lt;/P&gt;&lt;P&gt;3. For config.daml, for customcontrol tag, the two main attributes I used are assembly tag for dll name, className for your customcontrol classname. button should be in same concept as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you can share your customized button class, we can try and advise you better.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 00:17:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/reference-button-class-in-different-assembly/m-p/1020305#M6078</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-01-27T00:17:50Z</dc:date>
    </item>
  </channel>
</rss>

