Question : 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

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

here is how to get the publish verison:
//
using  System.Deployment.Application;
//
if (ApplicationDeployment.IsNetworkDeployed) {
var appDeploy= ApplicationDeployment.CurrentDeployment;
var version = appDeploy.CurrentVersion;
}
Random Solutions  
 
programming4us programming4us