[Monodevelop-patches-list] r1509 - trunk/MonoDevelop/src/AddIns/BackendBindings/ILAsmBinding

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Mon Apr 26 00:31:31 EDT 2004


Author: jluke
Date: 2004-04-26 00:31:31 -0400 (Mon, 26 Apr 2004)
New Revision: 1509

Modified:
   trunk/MonoDevelop/src/AddIns/BackendBindings/ILAsmBinding/ILAsmCompilerManager.cs
   trunk/MonoDevelop/src/AddIns/BackendBindings/ILAsmBinding/ILAsmExecutionManager.cs
Log:
fix running


Modified: trunk/MonoDevelop/src/AddIns/BackendBindings/ILAsmBinding/ILAsmCompilerManager.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/BackendBindings/ILAsmBinding/ILAsmCompilerManager.cs	2004-04-26 04:19:54 UTC (rev 1508)
+++ trunk/MonoDevelop/src/AddIns/BackendBindings/ILAsmBinding/ILAsmCompilerManager.cs	2004-04-26 04:31:31 UTC (rev 1509)
@@ -58,7 +58,8 @@
 			}
 			
 			string outputFile = Path.GetFullPath(fileUtilityService.GetDirectoryNameWithSeparator(compilerparameters.OutputDirectory) + compilerparameters.OutputAssembly + ".exe");
-			parameters.Append("/output:" + outputFile);
+			Console.WriteLine (outputFile);
+			parameters.Append("/out:" + outputFile);
 			parameters.Append(" ");
 			parameters.Append(compilerparameters.CurrentCompilerOptions.GenerateOptions());
 			string compilerName = GetCompilerName();

Modified: trunk/MonoDevelop/src/AddIns/BackendBindings/ILAsmBinding/ILAsmExecutionManager.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/BackendBindings/ILAsmBinding/ILAsmExecutionManager.cs	2004-04-26 04:19:54 UTC (rev 1508)
+++ trunk/MonoDevelop/src/AddIns/BackendBindings/ILAsmBinding/ILAsmExecutionManager.cs	2004-04-26 04:31:31 UTC (rev 1509)
@@ -45,10 +45,12 @@
 			FileUtilityService fileUtilityService = (FileUtilityService)ServiceManager.Services.GetService(typeof(FileUtilityService));
 			
 			string exe = Path.GetFullPath(Path.Combine(parameters.OutputDirectory, parameters.OutputAssembly) + ".exe");
-			ProcessStartInfo psi = new ProcessStartInfo("\"" + exe  + "\"");
-			psi.WorkingDirectory = Path.GetDirectoryName(exe);
-			psi.UseShellExecute  = true;
-			
+			string fullCommand = String.Format ("xterm -e \"mono {0};read -p 'press any key to continue...' -n1\"", exe);
+			ProcessStartInfo psi = new ProcessStartInfo(fullCommand);
+			psi.WorkingDirectory = Path.GetDirectoryName (exe);
+			psi.UseShellExecute  = false;
+			Process p = Process.Start (psi);
+			p.WaitForExit ();
 			//DebuggerService debuggerService  = (DebuggerService)ServiceManager.Services.GetService(typeof(DebuggerService));
 			//debuggerService.StartWithoutDebugging(psi);
 		}




More information about the Monodevelop-patches-list mailing list