title: How to read the assemblyversion from assemblyInfo.cs?
body: <p>Hii,
  there are many others had already post so many question about this..But here the scenario is different.</p>
  
  <p>I need to extract the first three digits ie. <code>$(major).$(Minor).$(Build)</code> from version number.
  how can i do this??..i tried <code>AssemblyInfo</code> Task..but that task is just for overwriting the version number.not to extract the version number.</p>
  
  <p>I need to extract first three number and assign them to some property.for further use.</p>
  
  <p>well,i can overwrite them using <code>FileUpdate</code> task.like ::</p>
  
  <pre><code>&lt;FileUpdate 
      Files="@(AssemblyFile)" 
      Regex='(\d+)\.(\d+)\.(\d+)\.(\d+)' 
      ReplacementText='$1.$2.$3.$(Revision)'&gt;
  &lt;/FileUpdate&gt;
  </code></pre>
  
  <p>now how can i use their value ie. <code>$1,$2,$3</code> to assign to properties.??? </p>
  
  <p>Thanx.</p>