diff --git a/Build/Build.exe b/Build/Build.exe
index b24aee7f..23ff9593 100644
Binary files a/Build/Build.exe and b/Build/Build.exe differ
diff --git a/Prebuild.xml b/Prebuild.xml
index cfeaf24e..02664a33 100644
--- a/Prebuild.xml
+++ b/Prebuild.xml
@@ -29,7 +29,7 @@
.\Instructions.txt
-
+
diff --git a/Source/Build/Build.cs b/Source/Build/Build.cs
index 60086e3a..753431f8 100644
--- a/Source/Build/Build.cs
+++ b/Source/Build/Build.cs
@@ -158,7 +158,8 @@ namespace OpenTK.Build
ExecuteProcess(PrebuildPath, "/clean /yes /file " + PrebuildXml);
DeleteDirectories(RootPath, "obj");
DeleteDirectories(RootPath, "bin");
- Directory.Delete(RootPath + "Binaries", true);
+ if (Directory.Exists(RootPath + "Binaries"))
+ Directory.Delete(RootPath + "Binaries", true);
break;
case BuildTarget.SVNClean:
@@ -209,8 +210,17 @@ namespace OpenTK.Build
static void ExecuteProcess(string path, string args)
{
Process p = new Process();
- p.StartInfo.FileName = path;
- p.StartInfo.Arguments = args;
+ if (Environment.OSVersion.Platform == PlatformID.Unix)
+ {
+ p.StartInfo.FileName = "mono";
+ p.StartInfo.Arguments = path + " " + args;
+ }
+ else
+ {
+ p.StartInfo.FileName = path;
+ p.StartInfo.Arguments = args;
+ }
+
p.StartInfo.WorkingDirectory = RootPath;
p.StartInfo.CreateNoWindow = true;
p.StartInfo.RedirectStandardOutput = true;