<?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 get ArcGIS Pro version via C# API in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-get-arcgis-pro-version-via-c-api/m-p/869101#M5061</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;BR /&gt;FileVersion property returned&amp;nbsp;"2.3.3.15900", which is more than I want as I'm trying to display the version in the same way it's shown on ArcGIS Pro's "About" screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changing the last line of the code you provided did the trick:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;private string GetProVersion()&lt;BR /&gt; {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;Assembly assembly = Assembly.GetEntryAssembly();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(assembly.Location);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;return $"{fvi.ProductMajorPart}.{fvi.ProductMinorPart}.{fvi.ProductBuildPart}";&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Apr 2020 09:54:16 GMT</pubDate>
    <dc:creator>GustavoCruz</dc:creator>
    <dc:date>2020-04-30T09:54:16Z</dc:date>
    <item>
      <title>How to get ArcGIS Pro version via C# API</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-get-arcgis-pro-version-via-c-api/m-p/869099#M5059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We develop an add-in for ArcGIS Pro in .Net / C# which has a custom About screen where among other we display the ArcGIS Pro version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We followed this snippet (&lt;A href="https://github.com/esri/arcgis-pro-sdk/wiki/ProSnippets-Framework#get-arcgis-pro-version)"&gt;https://github.com/esri/arcgis-pro-sdk/wiki/ProSnippets-Framework#get-arcgis-pro-version)&lt;/A&gt;&amp;nbsp;in order to get it but even though I'm running ArcGIS Pro 2.3.3 the version I get with code below is 2.3.0.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Assembly.GetEntryAssembly().GetName().Version.ToString();&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could this be a bug in the API or are we doing something wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gustavo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2020 10:18:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-get-arcgis-pro-version-via-c-api/m-p/869099#M5059</guid>
      <dc:creator>GustavoCruz</dc:creator>
      <dc:date>2020-04-28T10:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to get ArcGIS Pro version via C# API</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-get-arcgis-pro-version-via-c-api/m-p/869100#M5060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;To get the full file version of ArcGISPro.exe, you can try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;System&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Reflection&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Assembly assembly &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; System&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Reflection&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Assembly&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetEntryAssembly&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
FileVersionInfo fvi &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; FileVersionInfo&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetVersionInfo&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;assembly&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Location&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;string&lt;/SPAN&gt; fileVersion &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; fvi&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;FileVersion&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:49:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-get-arcgis-pro-version-via-c-api/m-p/869100#M5060</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2021-12-12T10:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to get ArcGIS Pro version via C# API</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-get-arcgis-pro-version-via-c-api/m-p/869101#M5061</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;BR /&gt;FileVersion property returned&amp;nbsp;"2.3.3.15900", which is more than I want as I'm trying to display the version in the same way it's shown on ArcGIS Pro's "About" screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changing the last line of the code you provided did the trick:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;private string GetProVersion()&lt;BR /&gt; {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;Assembly assembly = Assembly.GetEntryAssembly();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(assembly.Location);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;return $"{fvi.ProductMajorPart}.{fvi.ProductMinorPart}.{fvi.ProductBuildPart}";&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2020 09:54:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-get-arcgis-pro-version-via-c-api/m-p/869101#M5061</guid>
      <dc:creator>GustavoCruz</dc:creator>
      <dc:date>2020-04-30T09:54:16Z</dc:date>
    </item>
  </channel>
</rss>

