title: ASPRUNTIME: The application domain in which the thread was running has been unloaded.
body: <p>We're running Jekins which kicks off a gulp build process. As part of the gulp build process we trigger an <a href="https://www.npmjs.com/package/gulp-msbuild" rel="noreferrer">msbuild task</a>.</p>
  
  <p>Every second build fails with the message: </p>
  
  <blockquote>
    <p>ASPNETCOMPILER : error ASPRUNTIME: The application domain in which the thread was running has been unloaded. </p>
  </blockquote>
  
  <p>This happens exactly every other build no matter the time span between builds. (i.e. Builds, Fails, Builds, Fails).</p>
  
  <p>Any ideas on what might be causing this and why it happens only every other build?</p>