Merge pull request #1225 from strawd/bug22307
[mono.git] / mcs / class / Cscompmgd / Microsoft.CSharp / Compiler.cs
index 043f122163d53edc8c7de2171cd090b7e3ebeb35..5b75d9c890481c3675cad5caaae9f5637ca0e183 100644 (file)
@@ -36,9 +36,7 @@ using System.Text.RegularExpressions;
 
 namespace Microsoft.CSharp {
 
-#if NET_2_0
        [System.Obsolete]
-#endif
        public class Compiler {
                
                private Compiler()
@@ -100,6 +98,7 @@ namespace Microsoft.CSharp {
                        mcs.StartInfo.CreateNoWindow = true;
                        mcs.StartInfo.UseShellExecute = false;
                        mcs.StartInfo.RedirectStandardOutput = true;
+                       mcs.StartInfo.RedirectStandardError = true;
 
                        try {
                                mcs.Start ();