How can I run .NET exe in a new process in a cross-platform manner?

I have a .NET application that I need to run in my own process from another .NET application. If I only cared about it while working on Windows easily, I can just use System.Diagnostics.Process.Start, point the path to my exe, and I am good to go.

The trick is that this is to add MonoDevelop, so I need to do this, it works on different platforms, and on Mac and Linux you cannot count on the OS knowing what to do with the .NET assembly without help (i.e. calling mono myapp.exe).

Since this is to add MonoDevelop, an answer using Mono or MonoDevelop libraries would be acceptable.

+4
source share
2 answers

If you use Process.Start from Mono in the .NET executable, it will start with Mono automatically. It will not be transmitted directly to the OS.

+6
source

You can also use MonoDevelop.Core.Runtime.ProcessService.StartProcess ()

+4
source

All Articles