title: Invalid AssemblyVersion
body: <p>I'm using <em>Automatically increment revision with each publish</em> in my application deployment</p>
  
  <p><img src="https://i.stack.imgur.com/DfTRs.png" alt="Publish version screen shot"></p>
  
  <p>In combination with <code>AssemblyInfo.cs</code>:</p>
  
  <pre><code>[assembly: AssemblyVersion( "2.0.0.*" )]
  [assembly: AssemblyFileVersion( "2.0.0.0" )]
  </code></pre>
  
  <p>And I want to show user current version of software by using:</p>
  
  <pre><code>protected void InitializeVersionInfo()
  {
      Assembly a = Assembly.GetExecutingAssembly();
      Version v = System.Deployment.Application.ApplicationDeployment.IsNetworkDeployed
              ? System.Deployment.Application.ApplicationDeployment.CurrentDeployment.CurrentVersion
              : Assembly.GetExecutingAssembly().GetName().Version;
  
      string version = String.Format( System.Globalization.CultureInfo.InvariantCulture,
          @"Tool - Version {0}.{1}.{2} (r{3})", v.Major, v.Minor, v.Build, v.Revision );
      VersionLabel.Text = version;
  }
  </code></pre>
  
  <p>But I'm getting different version numbers:</p>
  
  <p><img src="https://i.stack.imgur.com/PCQ2u.png" alt="Debugger screenshot"></p>
  
  <p>What am I doing wrong or what I am missing?</p>
  
  <p>How can I get software to display <code>2.0.0.12</code>?</p>