Add System.Diagnostics.Trace to the MOBILE profile.
authorJonathan Pryor <jonpryor@vt.edu>
Sat, 27 Apr 2013 13:30:04 +0000 (09:30 -0400)
committerJonathan Pryor <jonpryor@vt.edu>
Sat, 27 Apr 2013 13:32:21 +0000 (09:32 -0400)
Requested here:

http://forums.xamarin.com/discussion/3300/rationale-behind-removal-of-system-diagnostics-trace-in-xa-and-xi

mcs/class/System/System.Diagnostics/Trace.cs
mcs/class/System/mobile_System.dll.sources

index d4bdca0b664af2f3bd4065754035f086ffc97e0d..b18197a6bf63a1c2c74f946cb51994f8a84e6591 100644 (file)
@@ -66,9 +66,11 @@ namespace System.Diagnostics {
                        get {return TraceImpl.Listeners;}
                }
 
+#if !MOBILE
                public static CorrelationManager CorrelationManager {
                        get { return TraceImpl.CorrelationManager; }
                }
+#endif
 
                public static bool UseGlobalLock {
                        get { return TraceImpl.UseGlobalLock; }
index 0ed7e1088ec48432929e424fd7e40c3e1b61d9b0..d832ee1e7109ab6410dcdb2456a672988ba376e1 100644 (file)
@@ -211,6 +211,7 @@ System.Diagnostics/ProcessThread.cs
 System.Diagnostics/ProcessThreadCollection.cs
 System.Diagnostics/ProcessWindowStyle.cs
 System.Diagnostics/Stopwatch.cs
+System.Diagnostics/Trace.cs
 System.Diagnostics/TraceImpl.cs
 System.Diagnostics/TraceListener.cs
 System.Diagnostics/TraceListenerCollection.cs