[System] Exclude code that tries to load System.Windows.Forms.dll dynamically on...
authorRolf Bjarne Kvinge <rolf@xamarin.com>
Tue, 6 Oct 2015 11:44:03 +0000 (13:44 +0200)
committerRolf Bjarne Kvinge <rolf@xamarin.com>
Wed, 18 Nov 2015 12:37:30 +0000 (13:37 +0100)
It won't succeed anyway.

mcs/class/System/System.Diagnostics/DefaultTraceListener.cs

index 9750c53b34a956a5813feffd9624b423be18434a..2bf4cab23c6e5641bcf5c351a09c2c7444058b10 100644 (file)
@@ -160,11 +160,14 @@ namespace System.Diagnostics {
                public override void Fail (string message, string detailMessage)
                {
                        base.Fail (message, detailMessage);
+#if !MOBILE
                        if (ProcessUI (message, detailMessage) == DialogResult.Abort)
                                Thread.CurrentThread.Abort ();
+#endif
                        WriteLine (new StackTrace().ToString());
                }
 
+#if !MOBILE
                DialogResult ProcessUI (string message, string detailMessage)
                {
                        
@@ -210,6 +213,7 @@ namespace System.Diagnostics {
                        Ignore,
                        Abort
                }
+#endif
 
                [MethodImplAttribute(MethodImplOptions.InternalCall)]
                private extern static void WriteWindowsDebugString (string message);