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:
[App Path]\bin\Debug\roslyn
But, when we compile, we get this error: Could not find a part of the path '[App Path]\bin\Debug\bin\roslyn\csc.exe'.
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
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?