Link to home
Start Free TrialLog in
Avatar of finance_teacher
finance_teacher

asked on

C# -- About Box -- display "Publish Version"

Below displays "AssemblyVersion"
which is found in
  1. Application TAB
  2. Assembly Information BUTTON
         ** attached 1.jpg
--------------------------------------------------
        public string AssemblyVersion
        {
            get
            {
                return Assembly.GetExecutingAssembly().GetName().Version.ToString();
            }
        }
--------------------------------------------------
How can I get the "Publish Version"
which is found in below so it displays
when users hit my "About" button ?
  1. Publish TAB
  2. Publish Version
         ** attached 2.jpg
1.jpg
2.jpg
ASKER CERTIFIED SOLUTION
Avatar of lenordiste
lenordiste
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of PlatoConsultant
PlatoConsultant
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of finance_teacher
finance_teacher

ASKER

Below works
System.Deployment.Application.ApplicationDeployment.CurrentDeployment.CurrentVersion);
-----------------------------------------------------------------------------------------------------------------
        public About()
        {
            InitializeComponent();
            this.Text = String.Format("About {0}", AssemblyTitle);
            this.labelProductName.Text = AssemblyProduct;
            this.labelVersion.Text = String.Format("Version {0}", System.Deployment.Application.ApplicationDeployment.CurrentDeployment.CurrentVersion);
            this.labelCopyright.Text = AssemblyCopyright;
            this.labelCompanyName.Text = AssemblyCompany;
            this.textBoxDescription.Text = AssemblyDescription;
        }