title: Get minor and major version from MSBUILD script
body: <p>I'm using Msbuild to compile and generate .zip files and installers and I need the version number of my assembyInfo. </p>
  
  <p>I'm using this code.</p>
  
  <pre><code>&lt;Target Name="getversion"&gt;
      &lt;GetAssemblyIdentity AssemblyFiles="$(BuildDir)\myprogram.exe"&gt;
          &lt;Output TaskParameter="Assemblies" ItemName="fooAssemblyInfo"/&gt;
      &lt;/GetAssemblyIdentity&gt;
      &lt;Message Text="Version = %(fooAssemblyInfo.Version)"/&gt;
  &lt;/Target&gt;
  </code></pre>
  
  <p>But this returns Version = 2.0.0.29110, I need just the minor and major version.</p>
  
  <p>Is there any way to read the assembyInfo.cs information without a custom task?</p>