diff options
Diffstat (limited to 'src/framework/Internal')
-rwxr-xr-x | src/framework/Internal/RuntimeFramework.cs | 2 | ||||
-rwxr-xr-x | src/framework/Internal/TestExecutionContext.cs | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/framework/Internal/RuntimeFramework.cs b/src/framework/Internal/RuntimeFramework.cs index a34c390..abf2150 100755 --- a/src/framework/Internal/RuntimeFramework.cs +++ b/src/framework/Internal/RuntimeFramework.cs @@ -181,6 +181,7 @@ namespace NUnit.Framework.Internal else /* It's windows */ if (major == 2) { +#if !XAMMAC RegistryKey key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\.NETFramework"); if (key != null) { @@ -199,6 +200,7 @@ namespace NUnit.Framework.Internal } } } +#endif } currentFramework = new RuntimeFramework(runtime, new Version(major, minor)); diff --git a/src/framework/Internal/TestExecutionContext.cs b/src/framework/Internal/TestExecutionContext.cs index 340b4f2..d7e7bb6 100755 --- a/src/framework/Internal/TestExecutionContext.cs +++ b/src/framework/Internal/TestExecutionContext.cs @@ -481,7 +481,9 @@ namespace NUnit.Framework.Internal private void StartTracing()
{
+#if !XAMMAC
System.Diagnostics.Trace.Listeners.Add( new TextWriterTraceListener( traceWriter, "NUnit" ) );
+#endif
}
#endif
|