title: How do I force start Azure Compute Emulator before the role is deployed?
body: <p>I have some problems with auto-starting Azure Compute Emulator - when I hit F5 Visual Studio will package the role, then say</p>
  <blockquote>
  <p>Windows Azure Tools: There was no endpoint listening at net.pipe://localhost/dfagent/2/host that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.</p>
  <p>Windows Azure Tools: The Windows Azure compute emulator is not running or responding. Stopping the debugging session.</p>
  </blockquote>
  <p>which I want t try to override by force-starting the emulator using <code>csrun /devfabric:start</code> (mentioned <a href="http://msdn.microsoft.com/en-us/library/hh472165.aspx" rel="nofollow noreferrer">here</a>).</p>
  <p>I want csrun to be invoked only if the solution will be deployed into Compute Emulator, so putting it into a post-build step won't do - it will start on every build, even if I don't need Compute Emulator.</p>
  <p>Where do I put csrun invokation so that it is done only when the solution is to be deployed and run in Compute Emulator?</p>