title: Create a folder during MSBuild TFS Publish
body: <p>I'd like to create a folder during my TFS build process, in this case it's a 'TempImages' folder which I don't want as part of the solution, nor source control.</p>
  
  <p>To achieve this locally I set up the following post build action:</p>
  
  <pre><code>IF NOT EXIST "$(ProjectDir)\TempImages\" mkdir "$(ProjectDir)\TempImages\"
  </code></pre>
  
  <p>This works like a charm, except when using TFS to publish to my test environment the folder is not created. 
  After some googling, I found I may need to perform this action in a slightly different way, so added the following to my <code>.csproj</code> file.</p>
  
  <pre><code>  &lt;Target Name="AfterBuild"&gt;
      &lt;Exec Command="IF NOT EXIST &amp;quot;$(ProjectDir)\TempImages\&amp;quot; mkdir &amp;quot;$(ProjectDir)\TempImages\&amp;quot;"&gt;&lt;/Exec&gt;
    &lt;/Target&gt;
  </code></pre>
  
  <p>Unfortunately, this doesn't seem to have done the trick. </p>
  
  <p>What's the recommended route to create a folder on post build / post deployment through TFS for this purpose?</p>