<?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: Get Addin info Pro 3.0 in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-addin-info-pro-3-0/m-p/1192016#M8408</link>
    <description>&lt;P&gt;I looked up the documentation and it seems that parameter for isInherit is required in the call but ultimately ignored in&amp;nbsp;&lt;SPAN&gt;GetCustomAttributes&amp;nbsp;.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jul 2022 18:37:06 GMT</pubDate>
    <dc:creator>AbelPerez</dc:creator>
    <dc:date>2022-07-13T18:37:06Z</dc:date>
    <item>
      <title>Get Addin info Pro 3.0</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-addin-info-pro-3-0/m-p/1191638#M8392</link>
      <description>&lt;P&gt;At Pro 2.9 there was this great helper class that got info for your own addin.&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Content/AddInInfoManager" target="_blank"&gt;https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Content/AddInInfoManager&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It bombs at 3.0 and I have not been able to locate an alternative API or other form of getting the info programmatically.&lt;/P&gt;&lt;P&gt;I tweaked the function and it turns out the the code is returning zero guid attributes:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;        public static string GetAddInGuid()
        {
            // get the GUID that identifies the current add-in
            Assembly exAssembly = Assembly.GetExecutingAssembly();
            //GuidAttribute gAttribute = (GuidAttribute)exAssembly.GetCustomAttributes(typeof(GuidAttribute), true)[0];
            object[] custAtts = exAssembly.GetCustomAttributes(typeof(GuidAttribute), true);
            if (custAtts.Length == 0)
            {
                throw new Exception("No custom attributes.");
            }
            GuidAttribute gAttribute = (GuidAttribute)custAtts[0];

            // guid={903288ab-2c9c-4e49-8a3d-0321f68425c1}
            return string.Format("{{{0}}}", gAttribute.Value);
        }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone know an alternative to programmatically get info for your own addin or just the GUID?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 17:47:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-addin-info-pro-3-0/m-p/1191638#M8392</guid>
      <dc:creator>AbelPerez</dc:creator>
      <dc:date>2022-07-12T17:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Get Addin info Pro 3.0</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-addin-info-pro-3-0/m-p/1191647#M8394</link>
      <description>&lt;P&gt;Haven't tried this with 3.0, but for 2.9 you need to pass false to GetCustomAttributes instead of true.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;// ...
var idAttribute = Assembly.GetExecutingAssembly().GetCustomAttributes(false).OfType&amp;lt;GuidAttribute&amp;gt;().FirstOrDefault();
if (idAttribute == null) return string.Empty;

var id = idAttribute.Value;
if (!Guid.TryParse(id, out var guid)) return string.Empty;
// ...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 18:04:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-addin-info-pro-3-0/m-p/1191647#M8394</guid>
      <dc:creator>StephenRhea2</dc:creator>
      <dc:date>2022-07-12T18:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Get Addin info Pro 3.0</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-addin-info-pro-3-0/m-p/1191652#M8395</link>
      <description>&lt;P&gt;So tried your code and I'm getting a null on line 3. I also tried just the plain jane&amp;nbsp;GetCustomAttributes() and that also returns zero elements.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 18:14:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-addin-info-pro-3-0/m-p/1191652#M8395</guid>
      <dc:creator>AbelPerez</dc:creator>
      <dc:date>2022-07-12T18:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Get Addin info Pro 3.0</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-addin-info-pro-3-0/m-p/1191694#M8399</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2947"&gt;@AbelPerez&lt;/a&gt;&amp;nbsp;, it appears that the AddinInfoManager sample was missing when we published the 3.0 community samples.&amp;nbsp; Sorry about that, but i added a 3.0 version of the sample and it appeared to work for me.&amp;nbsp;&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Content/AddInInfoManager" target="_blank"&gt;arcgis-pro-sdk-community-samples/Content/AddInInfoManager at master · Esri/arcgis-pro-sdk-community-samples (github.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wolf_0-1657657070753.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/45748i93B62CAB0ADB48E2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wolf_0-1657657070753.png" alt="Wolf_0-1657657070753.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 20:19:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-addin-info-pro-3-0/m-p/1191694#M8399</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2022-07-12T20:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Get Addin info Pro 3.0</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-addin-info-pro-3-0/m-p/1191884#M8403</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/12882"&gt;@Wolf&lt;/a&gt;&amp;nbsp;that is still a no-go for me. The line where it crashes is same as before&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var attribute = (GuidAttribute)assembly.GetCustomAttributes(typeof(GuidAttribute), true)[0];&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run&amp;nbsp;string guidStr = AddIn.GetAddInId(); it seems that the function&amp;nbsp;GetCustomAttributes returns an empty collection.&lt;/P&gt;&lt;P&gt;Rather odd since I started this project from scratch and used the guide here&amp;nbsp;&lt;A href="https://developers.arcgis.com/documentation/arcgis-add-ins-and-automation/arcgis-pro/tutorials/build-your-first-add-in/" target="_blank"&gt;https://developers.arcgis.com/documentation/arcgis-add-ins-and-automation/arcgis-pro/tutorials/build-your-first-add-in/&lt;/A&gt;. I did however go to the Project Properties and change some stuff there. Mainly default namespace and assembly version. Mainly in the Package section.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 13:54:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-addin-info-pro-3-0/m-p/1191884#M8403</guid>
      <dc:creator>AbelPerez</dc:creator>
      <dc:date>2022-07-13T13:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Get Addin info Pro 3.0</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-addin-info-pro-3-0/m-p/1191994#M8406</link>
      <description>&lt;P&gt;Ok this is very odd. I thought I had changed something that broke it. But I just created a brand new Addin with the VS template, added a button, added the Addin and Extensions classes. It still bombs at the same line.&lt;/P&gt;&lt;P&gt;My guess is that a project migration from Framework to Core keeps some properties while a brand new project based on Core doesn't have them. Idk.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 17:53:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-addin-info-pro-3-0/m-p/1191994#M8406</guid>
      <dc:creator>AbelPerez</dc:creator>
      <dc:date>2022-07-13T17:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Get Addin info Pro 3.0</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-addin-info-pro-3-0/m-p/1192010#M8407</link>
      <description>&lt;P&gt;I was wondering that as well. It seems like the way the Config.daml attributes are written to the assembly is different between .NET Framework 4.8 and .NET 6, assuming your daml file is the same in both, of course.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 18:32:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-addin-info-pro-3-0/m-p/1192010#M8407</guid>
      <dc:creator>tempStephenRhea_NV5</dc:creator>
      <dc:date>2022-07-13T18:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Get Addin info Pro 3.0</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-addin-info-pro-3-0/m-p/1192016#M8408</link>
      <description>&lt;P&gt;I looked up the documentation and it seems that parameter for isInherit is required in the call but ultimately ignored in&amp;nbsp;&lt;SPAN&gt;GetCustomAttributes&amp;nbsp;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 18:37:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-addin-info-pro-3-0/m-p/1192016#M8408</guid>
      <dc:creator>AbelPerez</dc:creator>
      <dc:date>2022-07-13T18:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Get Addin info Pro 3.0</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-addin-info-pro-3-0/m-p/1192018#M8409</link>
      <description>&lt;P&gt;Unfortunately my knowledge base is limited when it comes to the writing of the assembly. But my tests showed that something is missing.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 18:38:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-addin-info-pro-3-0/m-p/1192018#M8409</guid>
      <dc:creator>AbelPerez</dc:creator>
      <dc:date>2022-07-13T18:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Get Addin info Pro 3.0</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-addin-info-pro-3-0/m-p/1192119#M8413</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Have you tried&amp;nbsp;GetConfigDamlAddInInfo method from &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/12882"&gt;@Wolf&lt;/a&gt; suggested sample? Returning AddIn class has Id property and it must contain Guid you are looking. It works on 2.9&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 05:29:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-addin-info-pro-3-0/m-p/1192119#M8413</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2022-07-14T05:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Get Addin info Pro 3.0</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-addin-info-pro-3-0/m-p/1192223#M8415</link>
      <description>&lt;P&gt;Yes I did and it works &lt;STRONG&gt;IF&lt;/STRONG&gt; you know the file path of the addin. To know the path of the Addin you need the guid. So to get the guid, you need the guid.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;// 1. get the filename of this .esriAddinX file
var fileName = AddIn.GetAddInId();
// 2. get the config.daml content from the esriAddinX file
var versionTuple = AddIn.GetConfigDamlAddInInfo(fileName);
MessageBox.Show($@"Version: {versionTuple.Version} desktopVersion: {versionTuple.DesktopVersion} Id: {Module1.Id}");&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But again this fails for me on line 2.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 15:24:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-addin-info-pro-3-0/m-p/1192223#M8415</guid>
      <dc:creator>AbelPerez</dc:creator>
      <dc:date>2022-07-14T15:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Get Addin info Pro 3.0</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-addin-info-pro-3-0/m-p/1192228#M8416</link>
      <description>&lt;P&gt;I am still looking at this issue.&amp;nbsp; &amp;nbsp;I was able to duplicate the difference in behavior between an Addin that is migrated to 3.0 and an Addin that is built with 3.0.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;When migrating to 3.0 the migration process retains the existing AssemblyInfo.cs file (where the Assembly Guid attribute is set) and then sets the tag "GenerateAssemblyInfo" in the project file to false (false means the AssemblyInfo is used instead of auto generated assembly info).&amp;nbsp; &amp;nbsp;After migrating a project to 3.0 the Assembly Guid attribute is extracted from the migrated AssemblyInfo.cs (in essence this works just like in 2.x).&amp;nbsp; &amp;nbsp;This doesn't happen when creating a new project using the Addin project template because it is using the .Net default (which is:&amp;nbsp;GenerateAssemblyInfo = true) which doesn't create the assembly info source and apparently doesn't generate an Assembly Guid attribute.&amp;nbsp; I am trying to find another way to get the Guid.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;As a workaround you could change the project file and add this under the first PropertyGroup tag:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;GenerateAssemblyInfo&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;false&lt;SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;GenerateAssemblyInfo&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;and then add a n AssemblyInfo.cs file under the project's Properties folder (use and modify an AssemblyInfo.cs file from community samples).&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 16:05:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-addin-info-pro-3-0/m-p/1192228#M8416</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2022-07-14T16:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Get Addin info Pro 3.0</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-addin-info-pro-3-0/m-p/1192229#M8417</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/12882"&gt;@Wolf&lt;/a&gt;&amp;nbsp; thank you so much. I also sent you some suggestions on the class methods.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 15:49:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-addin-info-pro-3-0/m-p/1192229#M8417</guid>
      <dc:creator>AbelPerez</dc:creator>
      <dc:date>2022-07-14T15:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Get Addin info Pro 3.0</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-addin-info-pro-3-0/m-p/1192256#M8419</link>
      <description>&lt;P&gt;I tried this method on both 2.x migrated projects and 3.0 created addin projects.&amp;nbsp; There might be a better way to do this but for the time being this should work:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;    public static string GetAddInGuid()
    {
      // get the GUID that identifies the current add-in
      Assembly exAssembly = Assembly.GetExecutingAssembly();
      var dirs = exAssembly.Location.Split(System.IO.Path.DirectorySeparatorChar);
      if (dirs.Length &amp;gt; 2
          &amp;amp;&amp;amp; Guid.TryParse(dirs[dirs.Length - 2], out Guid assemblyGuid))
      {
        return assemblyGuid.ToString();
      }
      throw new Exception($@"Assembly path doesn't contain a GUID: {exAssembly.Location}");
    }&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 14 Jul 2022 16:45:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-addin-info-pro-3-0/m-p/1192256#M8419</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2022-07-14T16:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Get Addin info Pro 3.0</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-addin-info-pro-3-0/m-p/1192270#M8420</link>
      <description>&lt;P&gt;Ok let me try this. thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 17:29:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-addin-info-pro-3-0/m-p/1192270#M8420</guid>
      <dc:creator>AbelPerez</dc:creator>
      <dc:date>2022-07-14T17:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Get Addin info Pro 3.0</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-addin-info-pro-3-0/m-p/1192286#M8421</link>
      <description>&lt;P&gt;Ok your alternative code works! Thank you so much. I made some very small modifications so that we can keep the prior logic, and it that doesn't work then use the new logic. I also wrapped the GUID with squigglies as that is probably what users expect. I also didn't want an exception thrown so on a fail I just return an empty string.&lt;BR /&gt;&lt;BR /&gt;Here is my mod to your code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;        /// &amp;lt;summary&amp;gt;
        /// Get the current add-in module's daml / AddInInfo Id tag (which is the same as the Assembly GUID)
        /// &amp;lt;/summary&amp;gt;
/// &amp;lt;returns&amp;gt;&amp;lt;/returns&amp;gt;
public static string GetAddInId()
{
    // Module.Id is internal, but we can still get the GUID from the assembly
    var assembly = Assembly.GetExecutingAssembly();
    //var attribute = (GuidAttribute)assembly.GetCustomAttributes(typeof(GuidAttribute), true)[0];
    object[] custAtts = assembly.GetCustomAttributes(typeof(GuidAttribute), true);
    Debug.Print("custAtts.Count={0}", custAtts.Count());
    if (custAtts.Count() &amp;gt; 0)
    {
        GuidAttribute attribute = (GuidAttribute)custAtts[0];

        string aguid = string.Format("{{{0}}}", attribute.Value);
        return aguid;
    }
    else
    {
        // if no custom attributes returned then try through the assembly location which has the GUID
        // embedded in the path. 
        Debug.Print("assembly.Location={0}", assembly.Location);
        var dirs = assembly.Location.Split(Path.DirectorySeparatorChar);
        if (dirs.Length &amp;gt; 2 &amp;amp;&amp;amp; Guid.TryParse(dirs[dirs.Length - 2], out Guid assemblyGuid))
        {
            Debug.Print("assemblyGuid={0}", assemblyGuid.ToString());
            string aguid = string.Format("{{{0}}}", assemblyGuid.ToString());
            return aguid;
        }
        else
        {
            //throw new Exception($@"Assembly path doesn't contain a GUID: {assembly.Location}");
            Debug.Print($@"Assembly path doesn't contain a GUID: {assembly.Location}");
            return string.Empty;
        }
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 18:23:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-addin-info-pro-3-0/m-p/1192286#M8421</guid>
      <dc:creator>AbelPerez</dc:creator>
      <dc:date>2022-07-14T18:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Get Addin info Pro 3.0</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-addin-info-pro-3-0/m-p/1192479#M8426</link>
      <description>&lt;P&gt;Thanks for your diligence on this issue.&amp;nbsp; Also&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/9021"&gt;@UmaHarano&lt;/a&gt; wanted me to let you know that the API now has the&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic26208.html" target="_self"&gt;AddInInfo Class&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can retrieve the list of all AddInInfos using&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic26229.html" target="_self"&gt;FrameworkApplication.GetAddInInfos()&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Using your&amp;nbsp;GetAddInId() helper method allows to select the AddInInfo object for the running AddIn - here is the sample code for getting an AddInInfo instance for the running AddIn:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;protected override void OnClick()
{
  try
  {
    // get the ID of this Addin
    var myAddinGuid = GetAddInGuid();
    var addinInfos = FrameworkApplication.GetAddInInfos();
    var myAddin = addinInfos.Where(x =&amp;gt; x.ID == myAddinGuid).FirstOrDefault();
    if (myAddin != null)
    {
      MessageBox.Show(GetAddInInfoDetail(myAddin));
    }
    else
      throw new Exception("Can't find Addin Guid");
  }
  catch (Exception ex)
  {
    MessageBox.Show($@"Error: {ex.ToString()}");
  }
}

private static string GetAddInInfoDetail(AddInInfo info)
{
  StringBuilder sb = new();
  sb.AppendLine($"Addin: {info.Name}");
  sb.AppendLine($"Description {info.Description}");
  sb.AppendLine($"ImagePath {info.ImagePath}");
  sb.AppendLine($"Author {info.Author}");
  sb.AppendLine($"Company {info.Company}");
  sb.AppendLine($"Date {info.Date}");
  sb.AppendLine($"Version {info.Version}");
  sb.AppendLine($"FullPath {info.FullPath}");
  sb.AppendLine($"DigitalSignature {info.DigitalSignature}");
  sb.AppendLine($"IsCompatible {info.IsCompatible}");
  sb.AppendLine($"IsDeleted {info.IsDeleted}");
  sb.AppendLine($"TargetVersion {info.TargetVersion}");
  sb.AppendLine($"ErrorMsg {info.ErrorMsg}");
  sb.AppendLine($"ID {info.ID}");
  sb.AppendLine("");
  return sb.ToString();
}

private static string GetAddInGuid()
{
  // get the GUID that identifies the current add-in
  Assembly exAssembly = Assembly.GetExecutingAssembly();
  var dirs = exAssembly.Location.Split(System.IO.Path.DirectorySeparatorChar);
  if (dirs.Length &amp;gt; 2
      &amp;amp;&amp;amp; Guid.TryParse(dirs[dirs.Length - 2], out Guid assemblyGuid))
  {
    return $@"{{{assemblyGuid.ToString()}}}";
  }
  throw new Exception($@"Assembly path doesn't contain a GUID: {exAssembly.Location}");
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2022 14:30:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-addin-info-pro-3-0/m-p/1192479#M8426</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2022-07-15T14:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Get Addin info Pro 3.0</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-addin-info-pro-3-0/m-p/1192480#M8427</link>
      <description>&lt;P&gt;Yes thank you, I have that in my code from the 2.x days.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2022 14:36:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-addin-info-pro-3-0/m-p/1192480#M8427</guid>
      <dc:creator>AbelPerez</dc:creator>
      <dc:date>2022-07-15T14:36:17Z</dc:date>
    </item>
  </channel>
</rss>

