<?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: Restrict add-in to specific patch using DAML in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/restrict-add-in-to-specific-patch-using-daml/m-p/1230133#M9050</link>
    <description>&lt;P&gt;If you can't do this through the DAML file, this &lt;A href="https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-get-arcgis-pro-version-via-c-api/m-p/869099" target="_self"&gt;post&lt;/A&gt; shows how to get the ArcGIS Pro version information through code.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Nov 2022 18:41:36 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2022-11-09T18:41:36Z</dc:date>
    <item>
      <title>Restrict add-in to specific patch using DAML</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/restrict-add-in-to-specific-patch-using-daml/m-p/1230041#M9045</link>
      <description>&lt;P&gt;Is there a way to restrict an add-in to a specific patch version, preferably using DAML? I know the desktopVersion in Config.daml will restrict down to the minor version, but some of our add-ins make heavy use of the GetZsFromSurfaceAsync method, which had a bug until 2.9.4. We're developing against 2.9.5, so we're taking full advantage of the fix. If any of our users are below 2.9.4, we'd like to either prevent the add-in from loading or disable it using states and conditions so they don't get incorrect values from that method.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 16:33:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/restrict-add-in-to-specific-patch-using-daml/m-p/1230041#M9045</guid>
      <dc:creator>tempStephenRhea_NV5</dc:creator>
      <dc:date>2022-11-09T16:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict add-in to specific patch using DAML</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/restrict-add-in-to-specific-patch-using-daml/m-p/1230079#M9047</link>
      <description>&lt;P&gt;You can specify 2.9.buildno&amp;nbsp; in config.daml in the AddInInfo tag's desktopVersion attribute.&amp;nbsp; To find the buildno for 2.9.5 you can look in your control panel under programs / features.&amp;nbsp; The screen shot below is the version number desktopVersion number for 3.0.&amp;nbsp; &amp;nbsp;You can also create a new add-in with ArcGIS Pro 2.9.5 installed which will fill in the minimum desktopVersion for 2.9.5 in your config.daml.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wolf_0-1668013521134.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/55632i13B263794EB735ED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wolf_0-1668013521134.png" alt="Wolf_0-1668013521134.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See here:&amp;nbsp;&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Advanced-Topics#add-in-versioning" target="_blank"&gt;ProConcepts Advanced Topics · Esri/arcgis-pro-sdk Wiki (github.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 17:07:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/restrict-add-in-to-specific-patch-using-daml/m-p/1230079#M9047</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2022-11-09T17:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict add-in to specific patch using DAML</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/restrict-add-in-to-specific-patch-using-daml/m-p/1230097#M9048</link>
      <description>&lt;P&gt;Thanks for responding so quickly! I updated the desktopVersion to 2.9.5 on my machine, which also has 2.9.5 installed, then compiled and copied the add-in to a VM with 2.9.2 installed. The VM still loaded the add-in, which is what I'm trying to avoid. Is there maybe a way to get the Pro patch number through the API?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 17:42:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/restrict-add-in-to-specific-patch-using-daml/m-p/1230097#M9048</guid>
      <dc:creator>tempStephenRhea_NV5</dc:creator>
      <dc:date>2022-11-09T17:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict add-in to specific patch using DAML</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/restrict-add-in-to-specific-patch-using-daml/m-p/1230106#M9049</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Just create a new add-in on your development machine which should have ArcGIS Pro 2.9.5 installed.&amp;nbsp; Then open the config.daml of the newly created add-in and copy the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;desktopVersion attribute.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 17:55:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/restrict-add-in-to-specific-patch-using-daml/m-p/1230106#M9049</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2022-11-09T17:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict add-in to specific patch using DAML</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/restrict-add-in-to-specific-patch-using-daml/m-p/1230133#M9050</link>
      <description>&lt;P&gt;If you can't do this through the DAML file, this &lt;A href="https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-get-arcgis-pro-version-via-c-api/m-p/869099" target="_self"&gt;post&lt;/A&gt; shows how to get the ArcGIS Pro version information through code.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 18:41:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/restrict-add-in-to-specific-patch-using-daml/m-p/1230133#M9050</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2022-11-09T18:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict add-in to specific patch using DAML</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/restrict-add-in-to-specific-patch-using-daml/m-p/1230151#M9051</link>
      <description>&lt;P&gt;Doesn't appear to be possible through DAML, so a combination of desktopVersion=2.9.32739 and the code from that post (shown below) is the way to go.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;System.Reflection.Assembly assembly = System.Reflection.Assembly.GetEntryAssembly();
FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(assembly.Location);
if (fvi.FileBuildPart &amp;lt; 4)
    // Disable add-in&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/12882"&gt;@Wolf&lt;/a&gt;I created a new add-in and copied the desktop version (2.9.32739) into my existing add-in, and Pro 2.9.2 still loaded it. It leads me to believe that desktopVersion only looks at the major and minor versions&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 19:24:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/restrict-add-in-to-specific-patch-using-daml/m-p/1230151#M9051</guid>
      <dc:creator>tempStephenRhea_NV5</dc:creator>
      <dc:date>2022-11-09T19:24:24Z</dc:date>
    </item>
  </channel>
</rss>

