title: Reference AssemblyFileVersion in csproj file
body: <p>Once my nant build has completed I'd like to rename the generated .exe file using a post-build command which is appended to the end of the projects .csproj file (within the Project element):</p>
  
  <pre><code>&lt;Target Name="AfterBuild"&gt;
    &lt;Copy SourceFiles="$(TargetDir)\$(TargetName).exe" DestinationFiles="$(TargetDir)\MyApplication-$(AssemblyFileVersion).exe" SkipUnchangedFiles="true" /&gt;
  &lt;/Target&gt;
  </code></pre>
  
  <p>As you can see above, I am trying to rename the executable to: MyApplication-$(AssemblyFileVersion).exe however, this is obviously wrong, as the resulting executable is simply named: MyApplication-.exe (so the version I am trying to add at the end of the file name is missing).</p>
  
  <p>I have defined the AssemblyFileInfoVersion in the AssemblyInfo.cs file as follows:</p>
  
  <pre><code>[assembly: AssemblyFileVersion("1.5.1")]
  </code></pre>
  
  <p>So the question is: How can I access the AssemblyFileVersion in the csproj file of that same project?</p>