Plugin Version ambiguity

Hi all,
Using Visual Studio, the plugin’s version numbers are inconsistent across different files:

  • In .csproj it’s set to 1.0
  • In the .cs(manifest.yml) file , it shows up as 1.0.0.0
  • After I make changes (e.g., add/remove outputs in a custom GH component), the GH event log shows version 1.0.0008

I’m confused about where this 1.0.0008 comes from and how I can manage and keep the versioning consistent across the project. ( even I override public override string AssemblyVersion => “1.0.0”; in GH_AssemblyInfo, gh log still shows 1.0.0008)

  • Which files control the final version seen in Grasshopper?
  • Is there a standard or best practice for plugin versioning in Grasshopper?

Thanks in advance for any help!

The attribute displayed by Grasshopper by default is <AssemblyVersion> not <Version>, so use that tag in your .csproj instead.

Alternatively you can completely override the getter GH uses to get the version string in your GH_AssemblyInfo.

namespace YourPlugin
{
    public class AssemblyInfo : GH_AssemblyInfo
    {
        public override string AssemblyVersion => "1.0.0";
    }
}

Hello @ondrej ,
The overriding worked fine.
Thanks for your help. :pray: