title: How to display ClickOnce Version number on Windows Forms
body: <p>I have a windows forms application that is deployed to two different locations.</p>
  
  <ul>
  <li>Intranet - ClickOnce</li>
  <li>Internet - Installed on a citrix farm through Windows installer</li>
  </ul>
  
  <p>I display ClickOnce version number for click-once deployed version<code>ApplicationDeployment.IsNetworkDeployed</code>.</p>
  
  <pre><code>if (ApplicationDeployment.IsNetworkDeployed)
          return ApplicationDeployment.CurrentDeployment.CurrentVersion;
  </code></pre>
  
  <p>But for the non-click application, I am not sure how to retrieve clickonce version unless I hardcode the version number in assembly info.</p>
  
  <p>Is there an automatic way of retrieve ClickOnce version number for non-clickonce deployed version?</p>