namespace Microsoft.CSharp {
-#if NET_2_0
[System.Obsolete]
-#endif
public class Compiler {
private Compiler()
mcs.StartInfo.CreateNoWindow = true;
mcs.StartInfo.UseShellExecute = false;
mcs.StartInfo.RedirectStandardOutput = true;
+ mcs.StartInfo.RedirectStandardError = true;
try {
mcs.Start ();
- mcs_output = mcs.StandardError.ReadToEnd();
+ mcs_output = mcs.StandardError.ReadToEnd ();
+ mcs.StandardOutput.ReadToEnd ();
mcs.WaitForExit ();
} finally {
mcs.Close ();