AnsweredAssumed Answered

How to get add-in's dependency DLL version programmatically on runtime

Question asked by mik1971 on Nov 14, 2018
Latest reply on Nov 15, 2018 by sean_jones-esristaff

Hi,

On a runtime, we have to check if an addin loads a last version of a third party DLL. And to check if other addin loads/uses the same last version.

How to get add-in's dependency DLL version programmatically on runtime? It could be by System.Reflection (using AppData\Local\ESRI\Desktop10.0\AssemblyCache\) ? But preferable to get it from some object loaded to memory (not from a file - we believe it could be different).

 

The possible issue we are trying to find is:

The last version of a third party DLL is ABC_Ver112.dll.

 

AddIn 1

loads ABC_Ver112.dll

 

AddIn 2

loads ABC_Ver111.dll (this is an issue - should be ABC_Ver112.dll)

 

.Net 4.7

ArcObjects 10.6.0

Outcomes