title: dotnet core build in parallel or simultaneously
body: <p>In <a href="https://github.com/gatimus/DotnetParallelBuild" rel="noreferrer">this</a> solution I have 2 apps: <code>AppA</code>, <code>AppB</code> that share class library <code>Shared</code>. I have tried automating the build/running of these in parallel with both a <a href="https://github.com/gatimus/DotnetParallelBuild/blob/master/build.ps1" rel="noreferrer">PowerShell</a> and <a href="https://github.com/gatimus/DotnetParallelBuild/blob/master/build-script/app.js" rel="noreferrer">node</a> scripts (I'd be open to other solutions). I'm using both <code>--no-dependencies</code> and <code>--no-restore</code> flags, but intermittently I get:</p>
  
  <pre><code>'CSC : error CS2012: Cannot open \'C:\\Users\\User\\source\\repos\\ParallelBuild\\Shared\\obj\\Debug\\netcoreapp2.0\\Shared.dll\' for writing -- \'The process cannot access the file \'C:\\Users\\User\\source\\repos\\ParallelBuild\\Shared\\obj\\Debug\\netcoreapp2.0\\Shared.dll\' because it is being used by another process.\' [C:\\Users\\User\\source\\repos\\ParallelBuild\\Shared\\Shared.csproj]\r\n'
  </code></pre>
  
  <p>PowerShell:
  ./build.ps1
  <a href="https://i.stack.imgur.com/eBqqH.png" rel="noreferrer"><img src="https://i.stack.imgur.com/eBqqH.png" alt="enter image description here"></a></p>
  
  <p>node:
  run project <code>build-script</code> or <code>node ./build-script/app.js</code>
  <a href="https://i.stack.imgur.com/AL49z.png" rel="noreferrer"><img src="https://i.stack.imgur.com/AL49z.png" alt="enter image description here"></a></p>
  
  <p>Why is the <code>Shared</code> project building even with the <code>--no-dependencies</code> flag? How do I build in parallel or simultaneously?</p>