title: Get file version
body: <p>I can get file version of exe(its own version) in vb6 by using <code>App.Major</code> ,<code>App.Minor</code> , <code>App.Revision</code> etc. But how can i get the same in vb.net. I tried using following 3 methods.</p>
  
  <pre><code>Text1.Text = My.Application.Info.Version.Major &amp; "." &amp; My.Application.Info.Version.Minor &amp; "." &amp; My.Application.Info.Version.Build &amp; "." &amp; My.Application.Info.Version.Revision
  
  Text2.Text = Me.GetType.Assembly.GetName.Version.ToString()
  
  Text3.Text = My.Application.Info.Version.ToString()
  </code></pre>
  
  <p>In all 3 cases it was returning <strong>assembly version</strong>(I checked it in bin folder where the exe created in a xp machine.In windows 8 i didnt see any option like assembly version when i see file properties)</p>
  
  <p>By default both assembly and file versions are same.But when i changed it manually in <code>project properties-&gt;applicationassembly information-&gt;File version</code> i came to know my code is returning assembly version.
  So how can i get the file version? What is assembly and file vesrion?</p>