Select to view content in your preferred language

Can I access values in Config.esriaddinx

1354
4
07-19-2011 03:55 PM
AllanMills
Regular Contributor
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
Occasional Contributor
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
Regular Contributor
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
Occasional Contributor
Try: My.ThisAddIn.Version
0 Kudos
AllanMills
Regular Contributor
That works, thanks.
0 Kudos