title: How to find the file that is causing the exception in the compiler?
body: <p>so, i have a weird problem. So i have this enterprise code of my company... around 6000files and 200k lines of code.
  Something is causing the compiler to crash:
  Error   MSB6006 "csc.exe" exited with code -2146232797. </p>
  
  <p>I have already seen that some people reported the same error.
  <a href="https://github.com/dotnet/roslyn/issues?utf8=%E2%9C%93&amp;q=is%3Aissue+%22-2146232797%22" rel="nofollow noreferrer">https://github.com/dotnet/roslyn/issues?utf8=%E2%9C%93&amp;q=is%3Aissue+%22-2146232797%22</a></p>
  
  <p>It is difficult for me to locate the file that is causing trouble.
  I was wondering:</p>
  
  <ol>
  <li>Which file is causing this?</li>
  <li>Is there any way to attach the debugger to this csc.exe and get a memory?</li>
  <li>Is there a better way to approach this?</li>
  </ol>