Access addin version information in arcobjects

487
3
Jump to solution
05-22-2013 01:21 AM
MarnikBlomme
New Contributor II
Is there a way to access the addin version information like version number and description found in the esriaddinx file in the addin itself?

I'd like to use that information as a watermark on my screens and would like to avoid having to enter the information in different places.
0 Kudos
1 Solution

Accepted Solutions
RichardWatson
Frequent Contributor
I just created an add-in in Visual Studio using the wizard.

It looks like the wizard created a class named ThisAddIn:

    /// <summary>
    /// A class for looking up declarative information in the associated configuration xml file (.esriaddinx).
    /// </summary>
    internal static class ThisAddIn {

The class is in the file Config.Designer.cs.

Is this what you were looking for?

View solution in original post

0 Kudos
3 Replies
RichardWatson
Frequent Contributor
I just created an add-in in Visual Studio using the wizard.

It looks like the wizard created a class named ThisAddIn:

    /// <summary>
    /// A class for looking up declarative information in the associated configuration xml file (.esriaddinx).
    /// </summary>
    internal static class ThisAddIn {

The class is in the file Config.Designer.cs.

Is this what you were looking for?
0 Kudos
KenBuja
MVP Esteemed Contributor
You can use My.ThisAddIn, which gives you access to AddInID, Author, Company, Date, Description, IDs, Name, and Version

MsgBox(My.ThisAddIn.Description & vbNewLine & My.ThisAddIn.Version & vbNewLine & My.ThisAddIn.Author)
0 Kudos
MarnikBlomme
New Contributor II
I just created an add-in in Visual Studio using the wizard.

It looks like the wizard created a class named ThisAddIn:

    /// <summary>
    /// A class for looking up declarative information in the associated configuration xml file (.esriaddinx).
    /// </summary>
    internal static class ThisAddIn {

The class is in the file Config.Designer.cs.

Is this what you were looking for?



Indeed, the ThisAddIn contains all the information, thanks.
0 Kudos