[longomatch] Use the correct binary extension in windows
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [longomatch] Use the correct binary extension in windows
- Date: Wed,  3 Dec 2014 11:50:56 +0000 (UTC)
commit abc7248f7174c67f58c64e03ce4167bdd2d9d17e
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Wed Dec 3 12:41:26 2014 +0100
    Use the correct binary extension in windows
 LongoMatch.Services/Services/ToolsManager.cs |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.Services/Services/ToolsManager.cs b/LongoMatch.Services/Services/ToolsManager.cs
index afe0141..8845de5 100644
--- a/LongoMatch.Services/Services/ToolsManager.cs
+++ b/LongoMatch.Services/Services/ToolsManager.cs
@@ -203,7 +203,11 @@ namespace LongoMatch.Services
                        startInfo.UseShellExecute = false;
                        startInfo.Arguments = "\"" + migrationExe + "\"";
                        startInfo.WorkingDirectory = Path.GetFullPath (Path.Combine (Config.baseDirectory, 
"bin"));
-                       startInfo.FileName = "mono-sgen";
+                       if (System.Environment.OSVersion.Platform == PlatformID.Win32NT) {
+                               startInfo.FileName = "mono-sgen.exe";
+                       } else {
+                               startInfo.FileName = "mono-sgen";
+                       }
                        if (startInfo.EnvironmentVariables.ContainsKey ("MONO_PATH")) {
                                startInfo.EnvironmentVariables["MONO_PATH"] += Path.PathSeparator + monoPath;
                        } else {
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]