Select to view content in your preferred language

ArcGIS Pro Custom Addin Version Number

146
1
07-26-2024 08:08 AM
trushar
New Contributor II

Hey there, everyone!

I am currently wondering a way to change the my custom addin version number. 
In the `Config.daml` file, see the `AddInInfo` tag, ArcGIS Pro reads this and displays.  

<AddInInfo id="{some-guid}" version="1.0.0" desktopVersion="3.0.36056"> ... </AddInInfo>

In our case, we have a CI/CD pipe line that assigns a new build number. AFAIK `Config.daml` is a static markup, changes have to be done prior to getting build started. So my question is how you all did it? Script it? Is there any Esri api/documentation that I should take a look first? Please share..
Thank you again,
Trushar

0 Kudos
1 Reply
StephenRhea_NV5
Occasional Contributor

Since the version element is just a string, you can format the value like below to make replacing it in CI/CD easier. We use Jenkins, so I have a stage to replace {buildNumber} with %BUILD_ID%, then a stage to build the add-in.

<AddInInfo id="{guid}" version="1.2.3.{buildNumber}" desktopVersion="2.9.32739">...</AddInInfo>

 Note: I haven't looked into this with Pro 3.x; there may be additional functionality to make it easier, but I think editing before building is still required.