X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FCscompmgd%2FMicrosoft.CSharp%2FCompiler.cs;h=5b75d9c890481c3675cad5caaae9f5637ca0e183;hb=28f473c41df72b278eaf9784c29c2b8fa2cbe06a;hp=00928cd357e78bb44a4b80209164811b0f6a46b2;hpb=dd866d68820e0f66046256bb5d3f84e3988a8be0;p=mono.git diff --git a/mcs/class/Cscompmgd/Microsoft.CSharp/Compiler.cs b/mcs/class/Cscompmgd/Microsoft.CSharp/Compiler.cs index 00928cd357e..5b75d9c8904 100644 --- a/mcs/class/Cscompmgd/Microsoft.CSharp/Compiler.cs +++ b/mcs/class/Cscompmgd/Microsoft.CSharp/Compiler.cs @@ -36,6 +36,7 @@ using System.Text.RegularExpressions; namespace Microsoft.CSharp { + [System.Obsolete] public class Compiler { private Compiler() @@ -97,10 +98,12 @@ namespace Microsoft.CSharp { mcs.StartInfo.CreateNoWindow = true; mcs.StartInfo.UseShellExecute = false; mcs.StartInfo.RedirectStandardOutput = true; + mcs.StartInfo.RedirectStandardError = true; try { mcs.Start (); - mcs_output = mcs.StandardOutput.ReadToEnd(); + mcs_output = mcs.StandardError.ReadToEnd (); + mcs.StandardOutput.ReadToEnd (); mcs.WaitForExit (); } finally { mcs.Close ();