[Mono-dev] [Newbie] Force to run a c# apps with Mono Runtime
Miguel Mudge
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:
http://www.mono-project.com/Guide:Running_Mono_Applications
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,
try this:
bool isMonoRuntime = Type.GetType("Mono.Runtime") != null;
- Kipp
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
> my.exe.exe
> > runs with the MONO Runtime.
> >
> > Nevertheless i would like to embedd the Mono Runtime in the application
> in
> > 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
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20120213/4a7c9307/attachment.html>
More information about the Mono-devel-list
mailing list