title: CodeDomProvider.CompileAssemblyFromSource - Can't Find Roslyn (csc.exe)
body: <p>We recently upgraded from an old CodeDomProvider to the new Roslyn CodeDomProvider called Microsoft.CodeDom.Providers.DotNetCompilerPlatform. It works fine, but it looks for the csc.exe in the wrong place. The NuGet package puts the exe in the path:</p>
  
  <p>[App Path]\bin\Debug\roslyn</p>
  
  <p>But, when we compile, we get this error:
  <em>Could not find a part of the path '[App Path]\bin\Debug\bin\roslyn\csc.exe'.</em></p>
  
  <p>Notice that it is looking for the exe in the wrong place. It's looking for it inside the "bin" folder which is already in the bin\Debug folder. So, in order to make our code compile, we need to move the Roslyn compiler to:
  [App Path]\bin\Debug\bin\roslyn\csc.exe</p>
  
  <p>Is there any way to tell the CodeDomProvider where the Roslyn compiler is located? Isn't this just a straight up bug in the Roslyn compiler code?</p>