Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

The Addin system doesn't seem to be perfect. When I update the Addin in the network share, the version number immediately gets updated in the ArcMap Addin Manager, even though the updated binaries have not been loaded into the Assembly Cache. This can confuse people whether they have the most current version actually loaded.

I am trying to compare the version of the actual binary, to the version ArcMap thinks it has installed. Getting the binary version is easy, but I am having difficulty getting the ArcMap Addin version. Is there an interface for this I need to query? Or is this even possible to do?

share|improve this question

1 Answer 1

Try ThisAddin.Version.

Explanation: Assuming you used the VS add-in template, there should be a class called ThisAddin in your add-in's default namespace that has a static Version property corresponding to the Version element in the Config.esriaddinx file. This class is defined in the Config.Designer.cs file.

share|improve this answer
    
That is still tied in with the binary itself, so when ArcMap "sees" the new one. The code can't "see" the new one until an ArcMap restart. I'll post a screen shot of the variable I am looking for in a few. –  baens Oct 7 '11 at 17:23
    
Sounds like a bug then, as it's supposed to grab the latest version at startup if you're using the shared folder feature. I doubt the version number displayed in the Add-in Manager is exposed anywhere. Seems like anything a developer could to work around this would be hacky. Confirm the problem with support and advise your users about it. –  blah238 Oct 7 '11 at 18:46

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.