Can you get version number of ArcGIS Pro using the API?

69
1
04-19-2018 09:37 AM
Highlighted
New Contributor II

Without resorting to searching the registry, is there a way to obtain the version number of the ArcGIS Pro being used using the API?

Thanks

Reply
0 Kudos
1 Reply
Highlighted
Esri Contributor

The version of any of the Pro assemblies or executable will tell you. Something like 

string version = System.Reflection.Assembly.GetEntryAssembly().GetName().Version.ToString();

"GetEntryAssembly" should be ArcGISPro.exe
Reply
0 Kudos