I'm building an arcgis 2.6 configuration to add buttons to the UI with a custom window that appears on click. This is not an AddIn, nor does it shows in the AddInManager in Pro (this is the wanted behavior).
In the config.daml we can specify the version :
<AddInInfo id="{xyz-xyz-xyz-xyz-xyz}" version="2.1.1" desktopVersion="2.6">
If it was a regular addin I could use the solution provided here (c# - Programmatically fetching current Add-In version using ArcGIS Pro SDK - Geographic Information Systems Stack Exchange), that is using
FrameworkApplication.GetAddInInfos().First(addIn => addIn.Name == "your addin name").Version
But in my case, not being an addin, it does not work.
We are temporarily using the version from the file AssemblyInfo.cs through Assembly.GetExecutingAssembly().GetName().Version but as we also have addins in the same project and their version comes from the first solution (in the .daml), we wanted to keep the source for the version number the same everywhere.
Is there any way to access the combined config.daml info from within the viewmodel of the UI window we display after the button click?