title: Stopping Post Build events on project when building directly from MSBuild
body: <p>I have a project which has some post build events that do some copying around for other projects. I unfortunately cannot change that, and have been asked to write a build script for use on a CI server.</p>
  
  <p>Problem is that the post build steps run off the debug/release bin folders and I compile through the build script to a different folder. So one solution would be to let the project build as is, and then manually copy all files from the bin folders to the output folder I am using. However that feels like a bit of a hack, so I was wondering if there is a way for an MSBuild task to tell the solution it is building to ignore PostBuild events, I believe you could set a property PostBuildEvent='' but it didnt seem to stop them from happening...</p>
  
  <p>Here is an example of the build script target:</p>
  
  <pre><code>&lt;Target Name="Compile" DependsOnTargets="Clean;"&gt;
      &lt;MSBuild Projects="$(SourceDirectory)\SomeSolution.sln" 
              Properties="Configuration=Release; OutputPath=$(CompilationDirectory); PostBuildEvent=''" /&gt;
  &lt;/Target&gt;
  </code></pre>
  
  <p>Anyone had to do anything similar before?</p>