[longomatch] Use the full path to the assembly and use mono-sgen in windows too



commit 421ce1e7b6220c85564b927b6fefebc0494eb637
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Tue Dec 2 21:00:45 2014 +0100

    Use the full path to the assembly and use mono-sgen in windows too

 LongoMatch.Services/Services/ToolsManager.cs |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/LongoMatch.Services/Services/ToolsManager.cs b/LongoMatch.Services/Services/ToolsManager.cs
index b8b1832..afe0141 100644
--- a/LongoMatch.Services/Services/ToolsManager.cs
+++ b/LongoMatch.Services/Services/ToolsManager.cs
@@ -197,17 +197,13 @@ namespace LongoMatch.Services
                {
                        string db4oPath = Path.Combine (Config.baseDirectory, "lib", "cli", 
"Db4objects.Db4o-8.0");
                        string monoPath = Path.GetFullPath (Config.LibsDir) + Path.PathSeparator + 
Path.GetFullPath (db4oPath);
-                       string migrationExe = Path.Combine (Config.LibsDir, "migration", "LongoMatch.exe");
+                       string migrationExe = Path.GetFullPath (Path.Combine (Config.LibsDir, "migration", 
"LongoMatch.exe"));
                        ProcessStartInfo startInfo = new ProcessStartInfo ();
                        startInfo.CreateNoWindow = true;
                        startInfo.UseShellExecute = false;
                        startInfo.Arguments = "\"" + migrationExe + "\"";
                        startInfo.WorkingDirectory = Path.GetFullPath (Path.Combine (Config.baseDirectory, 
"bin"));
-                       if (System.Environment.OSVersion.Platform == PlatformID.Win32NT) {
-                               startInfo.FileName = "mono";
-                       } else {
-                               startInfo.FileName = "mono-sgen";
-                       }
+                       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]