How to access the version number for my Pro Add-In

580
2
08-03-2020 12:06 PM
EricCzajkowski
New Contributor

Is there a way to programmatically access the version number that I have assigned to my Add-in for ArcGIS Pro?

Tags (1)
0 Kudos
2 Replies
UmaHarano
Esri Regular Contributor

You can use the ArcGIS.Desktop.Framework.AddInInfo class for this.

0 Kudos
EricCzajkowski
New Contributor

Thanks. I think that this is basically what I need to do:

var addins = FrameworkApplication.GetAddInInfos();
foreach(var addin in addins) {
  // addin.Version
}