[Mono-dev] [Newbie] Force to run a c# apps with Mono Runtime
michael.mudge at welchallyn.com
Mon Feb 13 19:04:35 UTC 2012
See this page: http://www.mono-project.com/Embedding_Mono for more
information on embedding Mono as Autif described.
You may also want to just bundle your application into a Mono
runtime+framework+your app using mkbundle, but I'm not sure if this is a
viable option for Windows or just Linux. More here:
As I understand it, your goal is to make it so when your application starts
on a Windows machine, it runs under the Mono runtime. One possibility is
to have your program, running under the Microsoft .NET Framework, act as a
bootstrap that starts itself under the Mono framework (and the bootstrap
promptly exits). To detect if your program was started under Mono or not,
bool isMonoRuntime = Type.GetType("Mono.Runtime") != null;
On Mon, Feb 13, 2012 at 1:42 PM, Autif Khan <autif.mlist at gmail.com> wrote:
> On Sat, Feb 11, 2012 at 1:44 PM, Nixeus <transfairre at free.fr> wrote:
> > Hello,
> > I have an apps in c# designed for Mono.
> > I don't have the source code, but just the EXE.
> > I would like to force that this exe will be run with the MONO runtime.
> > So in order to doignt this,i would like to create a c# apps that make a
> > thing like this :
> > System.Diagnostics.Process.start("MyExe.exe") but to force that
> > runs with the MONO Runtime.
> > Nevertheless i would like to embedd the Mono Runtime in the application
> > order to execute the programm without having installing the MONO runtime.
> > Is this possible ?
> > How doing this please ?
> > Thanks a lot for all your help,
> > Best regards,
> > Nixeus
> You can have the my.exe as an embedded resource in a C app - this C
> app could also have the mono runtime as embedded resource. It does
> look like an enorrmous task though.
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list