<?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: How to access Add-In version? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-access-add-in-version/m-p/717215#M79</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you saying I have to hardcode my Add-In version in my module class? Isn't there any way the SDK can tell me the version of my Add-In without me having to manually store it and update it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Luke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Apr 2016 13:01:12 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2016-04-20T13:01:12Z</dc:date>
    <item>
      <title>How to access Add-In version?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-access-add-in-version/m-p/717213#M77</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to access the version of the Add-In (e.g. what is listed in the Config.daml) using the SDK?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, with the ArcObjects SDK, you could access the Add-In verison with &lt;STRONG&gt;My.ThisAddIn.Version&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a similar way I can access the version using the Pro SDK? I can access the assembly/dll version with the reflection namespace, but this is not linked in any way to the Add-In version from what I can tell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 11:27:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-access-add-in-version/m-p/717213#M77</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-04-18T11:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to access Add-In version?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-access-add-in-version/m-p/717214#M78</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luke,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the config.daml's &amp;lt;AddInInfo&amp;gt; tag,&amp;nbsp; you can get the desktopVersion attribute and use it within your code as a string property. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To create something similar to what ArcObjects provided, you can do following -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Within your Module class, create a nested class to store your add-in's version like this:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: blue;"&gt;internal&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;class&lt;/SPAN&gt; &lt;SPAN style="color: #2b91af;"&gt;Module1&lt;/SPAN&gt; : &lt;SPAN style="color: #2b91af;"&gt;Module&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue;"&gt;public&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;static&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;class&lt;/SPAN&gt; &lt;SPAN style="color: #2b91af;"&gt;MyAddin&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue;"&gt;public&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;static&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;string&lt;/SPAN&gt; Version =&amp;gt; &lt;SPAN style="color: #a31515;"&gt;"1.2.5023"&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue;"&gt;public&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;static&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;string&lt;/SPAN&gt; Name =&amp;gt; &lt;SPAN style="color: #a31515;"&gt;"ProAppModule1"&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;You can then access this class and the properties similar to ArcObjects. The example below is using the class with a button's click handler.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue;"&gt;protected&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;async&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;override&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;void&lt;/SPAN&gt; OnClick()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue;"&gt;string&lt;/SPAN&gt; myVersion = &lt;SPAN style="color: #2b91af;"&gt;Module1&lt;/SPAN&gt;.&lt;SPAN style="color: #2b91af;"&gt;MyAddin&lt;/SPAN&gt;.Version; &lt;SPAN style="color: green;"&gt;//do something with the version&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Uma Harano&lt;/P&gt;&lt;P&gt;ArcGIS Desktop SDK Team&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 17:09:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-access-add-in-version/m-p/717214#M78</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2016-04-18T17:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to access Add-In version?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-access-add-in-version/m-p/717215#M79</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you saying I have to hardcode my Add-In version in my module class? Isn't there any way the SDK can tell me the version of my Add-In without me having to manually store it and update it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Luke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 13:01:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-access-add-in-version/m-p/717215#M79</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-04-20T13:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to access Add-In version?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-access-add-in-version/m-p/717216#M80</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luke,&lt;/P&gt;&lt;P&gt;The version is hard coded already into the config.daml. It never changes for the lifetime of that add-in. Once you make your variable, you would not have to update it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Uma Harano&lt;/P&gt;&lt;P&gt;ArcGIS Desktop SDK Team.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 16:19:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-access-add-in-version/m-p/717216#M80</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2016-04-20T16:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to access Add-In version?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-access-add-in-version/m-p/717217#M81</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am also looking a way to read the Add-In "Version" Configuration. (Not the&amp;nbsp;desktopVersion) from SDK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sree&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2018 04:31:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-access-add-in-version/m-p/717217#M81</guid>
      <dc:creator>sreeharikottoormadam</dc:creator>
      <dc:date>2018-08-21T04:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to access Add-In version?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-access-add-in-version/m-p/717218#M82</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sree,&lt;/P&gt;&lt;P&gt;&amp;nbsp;You can take a look at this sample and see if it has what you need:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Content/AddInInfoManager"&gt;AddInInfoManager&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It displays version information about add-ins - the 'Version' string is probably what you are looking for:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/420200_Screenshot1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2018 06:30:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-access-add-in-version/m-p/717218#M82</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2018-08-21T06:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to access Add-In version?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-access-add-in-version/m-p/717219#M83</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaiser,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this will work. Probably I need to find all the add-ins and filter the version# based on my add-in guid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- My intention is to read the current version of my add-in directly from Config.daml.&amp;nbsp; &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;AddInInfo id="{my add-in guid}" version="1.0" desktopVersion="2.2.12813"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sree&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2018 07:07:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-access-add-in-version/m-p/717219#M83</guid>
      <dc:creator>sreeharikottoormadam</dc:creator>
      <dc:date>2018-08-21T07:07:37Z</dc:date>
    </item>
  </channel>
</rss>

