From aa5878ba70b95b47cd6246dbebedc7d0ec316da9 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Fri, 22 May 2015 13:01:19 +0200 Subject: Create a xammac-mobile GuiUnit project file. --- src/framework/GuiUnit_xammac_mobile.csproj | 390 +++++++++++++++++++++++++ src/framework/Info.plist | 34 +++ src/framework/Internal/RuntimeFramework.cs | 2 + src/framework/Internal/TestExecutionContext.cs | 2 + 4 files changed, 428 insertions(+) create mode 100644 src/framework/GuiUnit_xammac_mobile.csproj create mode 100644 src/framework/Info.plist diff --git a/src/framework/GuiUnit_xammac_mobile.csproj b/src/framework/GuiUnit_xammac_mobile.csproj new file mode 100644 index 0000000..a2aa457 --- /dev/null +++ b/src/framework/GuiUnit_xammac_mobile.csproj @@ -0,0 +1,390 @@ + + + + Debug + AnyCPU + {A3F8F2AB-B479-4A4A-A458-A89E7DC349F1};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + {EACFD119-769E-4E6C-89B7-A6CE3757C431} + Exe + Properties + NUnitLite + GuiUnit + + + 3.5 + + + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true + obj\$(Configuration)\xammac_mobile\ + true + Xamarin.Mac + v2.0 + + + true + full + false + ..\..\bin\xammac_mobile + TRACE;DEBUG;NET_4_5; CLR_4_0,NUNITLITE;XAMMAC + prompt + 4 + AllRules.ruleset + ..\..\bin\Debug\xammac_mobile\nunitlite.xml + false + false + false + false + false + false + false + + + pdbonly + true + ..\..\bin\xammac_mobile + TRACE;NET_4_5, CLR_4_0,NUNITLITE + prompt + 4 + AllRules.ruleset + ..\..\bin\Release\xammac_mobile\nunitlite.xml + false + false + false + false + false + false + false + + + guiunit.snk + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Code + + + + Code + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + False + .NET Framework 3.5 SP1 Client Profile + false + + + False + .NET Framework 3.5 SP1 + true + + + False + Windows Installer 3.1 + true + + + + + + + diff --git a/src/framework/Info.plist b/src/framework/Info.plist new file mode 100644 index 0000000..840fc05 --- /dev/null +++ b/src/framework/Info.plist @@ -0,0 +1,34 @@ + + + + + CFBundleDisplayName + GuiUnit + CFBundleDevelopmentRegion + en + CFBundleIconFile + + CFBundleIdentifier + com.xamarin.guiunit + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + guiunit + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + LSMinimumSystemVersion + 10.8 + NSHumanReadableCopyright + (C) Xamarin 2015 + NSMainNibFile + MainMenu + NSPrincipalClass + NSApplication + + 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 -- cgit v1.2.3