title: How can I retrieve major/minor/build/revision number on build events
body: <p>Hy there!</p>
  
  <p>I'm using this piece of code, to copy some files on post-build-event:</p>
  
  <pre><code>&lt;PropertyGroup&gt;
      &lt;DemoPath1&gt;..\demoPath1&lt;/DemoPath1&gt;
  &lt;/PropertyGroup&gt;
  &lt;Target Name="AfterBuild"&gt;
      &lt;Exec Command="robocopy $(ProjectDir)$(DemoPath1) $(ProjectDir)demoPath2/$(Revision) * /XD .svn _svn /XF *.cs /S" IgnoreExitCode="true" /&gt;
  &lt;/Target&gt;
  </code></pre>
  
  <p>As you can see, I would like to use <code>$(Revision)</code> - obviously, this is not going to work ...</p>
  
  <p>Can anybody help me out?</p>
  
  <p>@mods: I dunno exactly which tag to use ... on the one hand it's msbuild, on the other one visual studio ...? feel free to edit!</p>