It is required to display in the program which version of the application published in ClickOnce is currently running. Please do not confuse with the application build version.

    1 answer 1

    To get the ClickOnce publication version from the application itself, you need to do three things:

    1. Add a link to the project to the System.Deployment.dll library

    2. Connect namespace:

      using System.Deployment.Application; 
    3. Get the version of the installed publication:

       if (ApplicationDeployment.IsNetworkDeployed) { Version version = ApplicationDeployment.CurrentDeployment.CurrentVersion; }