Geographic Information Systems Asked by pvdev on October 10, 2020
The version of a custom ArcGIS Pro SDK Add-In is held in the config.daml of the Add-In project:
<AddInInfo id="{some guid}" version="1.0" desktopVersion="1.1.3068">
How do I programmatically access the current version of the Add-In (without reading the xml file directly at runtime using an xmlreader)?
In the Add-In framework for ArcMap using ArcObjects SDK, the Add-In version could be accessed like so:
My.ThisAddIn.Version
Has anyone discovered the ArcGIS Pro SDK way of doing this? I would imagine it’s possible but can’t find the method or property to retrieve it.
I guess the version number is also held in AssemblyInfo.cs, but i’d rather use the value from config.daml.
It's too late. Still, I'm sharing this for newbies who still need help with this.
var addInInfo = FrameworkApplication.GetAddInInfos().First(addIn => addIn.Name == "your addin name");
var version = addInInfo.Version;
Answered by osman on October 10, 2020
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP