Can I access values in Config.esriaddinx

1103
4
07-19-2011 03:55 PM
AllanMills
New Contributor III
For the addin tool I've written I've got a help->about menu item which displays the version number of the software. I notice that in Config.esriaddinx there is a version number attribute.

Is there a way for me to get that version number attribute within my code or would I have to modify each value seperately? I'm working in VB .NET.
0 Kudos
4 Replies
JeffreyHamblin
New Contributor III
In C# there is a static class ThisAddIn in the "Config.Designer.cs" file that has a bunch of properties that reflect the config, and Version is one of them.

So ThisAddIn.Version will get the version string in C#.

Must be something similar in VB.NET.
0 Kudos
AllanMills
New Contributor III
Hmm, I don't actually have a Config.Designer.cs file in my project. Just a Config.essriaddinx - not sure if it's a C# thing or something to do with the addin type though. Thanks though.
0 Kudos
JeffreyHamblin
New Contributor III
Try: My.ThisAddIn.Version
0 Kudos
AllanMills
New Contributor III
That works, thanks.
0 Kudos