<?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: Obtain version from config.daml programmatically in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/obtain-version-from-config-daml-programmatically/m-p/1143082#M7764</link>
    <description>&lt;P&gt;Thanks, I also think that this should be the only way, too complicated for the need we have, I'll keep using the alternative, aka using the Assembly version. I might actually do the opposite, so switch everything to the assembly version instead of the addin version. thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 11 Feb 2022 16:10:05 GMT</pubDate>
    <dc:creator>Jean-SébastienRoy</dc:creator>
    <dc:date>2022-02-11T16:10:05Z</dc:date>
    <item>
      <title>Obtain version from config.daml programmatically</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/obtain-version-from-config-daml-programmatically/m-p/1133370#M7604</link>
      <description>&lt;P&gt;I'm building an arcgis 2.6 configuration to add buttons to the UI with a custom window that appears on click. This is not an AddIn, nor does it shows in the AddInManager in Pro (this is the wanted behavior).&lt;/P&gt;&lt;P&gt;In the config.daml we can specify the version :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;&amp;lt;AddInInfo id="{XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX}" version="2.1.1" desktopVersion="2.6"&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it was a regular addin I could use the solution provided here (&lt;A href="https://gis.stackexchange.com/questions/160588/programmatically-fetching-current-add-in-version-using-arcgis-pro-sdk" target="_blank" rel="noopener"&gt;c# - Programmatically fetching current Add-In version using ArcGIS Pro SDK - Geographic Information Systems Stack Exchange&lt;/A&gt;), that is using&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;FrameworkApplication.GetAddInInfos().First(addIn =&amp;gt; addIn.Name == &lt;SPAN class=""&gt;"your addin name"&lt;/SPAN&gt;).Version&lt;/PRE&gt;&lt;P&gt;But in my case, not being an addin, it does not work.&lt;/P&gt;&lt;P&gt;We are temporarily using the version from the file AssemblyInfo.cs through Assembly.GetExecutingAssembly().GetName().Version but as we also have addins in the same project and their version comes from the first solution (in the .daml), we wanted to keep the source for the version number the same everywhere.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Is there any way to access the combined config.daml info from within the viewmodel of the UI window we display after the button click?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 14:28:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/obtain-version-from-config-daml-programmatically/m-p/1133370#M7604</guid>
      <dc:creator>Jean-SébastienRoy</dc:creator>
      <dc:date>2022-01-13T14:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Obtain version from config.daml programmatically</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/obtain-version-from-config-daml-programmatically/m-p/1133748#M7609</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There is ArcGIS Pro SDK sample, You can find it here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Content/AddInInfoManager" target="_self"&gt;https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Content/AddInInfoManager&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Class&amp;nbsp;&lt;SPAN&gt;AddIn has all you need&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 06:12:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/obtain-version-from-config-daml-programmatically/m-p/1133748#M7609</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2022-01-14T06:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Obtain version from config.daml programmatically</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/obtain-version-from-config-daml-programmatically/m-p/1143082#M7764</link>
      <description>&lt;P&gt;Thanks, I also think that this should be the only way, too complicated for the need we have, I'll keep using the alternative, aka using the Assembly version. I might actually do the opposite, so switch everything to the assembly version instead of the addin version. thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 16:10:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/obtain-version-from-config-daml-programmatically/m-p/1143082#M7764</guid>
      <dc:creator>Jean-SébastienRoy</dc:creator>
      <dc:date>2022-02-11T16:10:05Z</dc:date>
    </item>
  </channel>
</rss>

