title: Swallowing errors in pre-build steps in Visual Studio 2010
body: <p>My solution has a bunch of projects one of which is a windows service; I have a prebuild step to stop the service and a postbuild step to restart it (this way the windows service exe is not locked when VS is building/overwriting it). </p>
  
  <pre><code>on pre-build: 
  net stop myservice
  
  on post-build:
  net start myservice
  </code></pre>
  
  <p>If the service is not running while I'm starting the build, the net stop command fails and that prevents the build from proceeding. </p>
  
  <p>What can I do to still force the build even if the pre-build step failed?</p>