How to set plugin version in DockBar

Hello

I would like to know if there is any way to set a version number in a plugin’s dockbar?
To have visual control of which version the user is using.

Good morning @Luciano_Luiz_da_Silv,

If you are using C# you can set the version in your .csproj which will be compiled into the output .rhp assembly.

  <PropertyGroup>
	  <Version>1.0.0</Version>
	  <AssemblyVersion>$(Version)</AssemblyVersion>
  </PropertyGroup>

You can then access this from within your code like so

    internal class MyClass
    {
        public Version GetVersion() => typeof(MyClass).Assembly.GetName().Version;
    }

– cs

I’m using c++ to create my plugins.
dock

Something like the image

Hi @Luciano_Luiz_da_Silv,

In your dockbar code, you should know where you’re setting the caption. Just format the string to include whatever info you want.

– Dale

Hi Dale,
Yes, this is perfect, but I think there would be something like a counter, each time the plugin was compiled this version text would be incremented…