Change version of your own plugin

Hello :slight_smile:

Where can I change version of plugin in VS? When I change it in AssemblyInfo.cs like that:

2020-06-07_17h20_27

I can see it in all dll’s:

2020-06-07_17h24_36

But inside Rhino:

2020-06-07_17h27_59

So how it’s done?

Best regards :slight_smile:

Hello,

I’m currently on a VS Mac and I’m not sure if it is the same on Windows, but try to set the version on the Solution Options under Project menu.

Probably it’s not the same on Windows, because I can’t find it :smiley:

Maybe the Project menu > “NameOfTheProject” Properties. Then there is a button Assembly Version.

When I change Assembly version here it’ll change AssemblyInfo.cs
2020-06-10_18h23_59
but Rhino still doesn’t know what the version is :wink:

Hi @w.radaczynski,

Are you working on a Grasshopper plug-in?

– Dale

Yes,

@DavidRutten, can you help?

In my plugin I also have an Assembly called PufferfishInfo.cs apart from AssemblyInfo.cs which has version number.
Annotation 2020-06-10 140932

it looks like this

using System;
using System.Drawing;
using Grasshopper.Kernel;

namespace Pufferfish
{
    public class PufferfishInfo : GH_AssemblyInfo
    {
        public override string Name
        {
            get
            {
                return "Pufferfish";
            }
        }
        public override Bitmap Icon
        {
            get
            { 
                return Pufferfish.Properties.Resources.PfHelpIcon;
                //return null;
            }
        }
        public override string Description
        {
            get
            {
                //Return a short string describing the purpose of this GHA library.
                return "Components for Tweens, Blends, Morphs, Averages, Interpolations, & Transformations - essentially Shape Changing.";
            }
        }
        public override Guid Id
        {
            get
            {
                return new Guid("1c9de8a1-315f-4c56-af06-8f69fee88434");
            }
        }

        public override string AuthorName
        {
            get
            {
                //Return a string identifying you or your company.
                return "Michael Pryor";
            }
        }
        public override string AuthorContact
        {
            get
            {
                //Return a string representing your preferred contact details.
                return "youremail@gmail.com";
            }
        }
        public override string Version
        {
            get
            {
                //Return a string representing the version.
                return "2.9.0.0";
            }
        }
    }
}
1 Like

Yes, that’s it! :slight_smile:

You have to override string Version in YourOwnPluginNameInfo.cs, just like you did.

Thanks for help :wink:

1 Like