Windows to *nix with Mono
-
Is it possible to take a .net binary compiled under Windows and take the binary, and run it under Mono(under any *nix platform) without recompilation. I understand that Mono has WineLib related bindings and patches for porting applications written in windows to *nix, but I'm not sure if it would need a recompilation. thanks Kannan
-
Is it possible to take a .net binary compiled under Windows and take the binary, and run it under Mono(under any *nix platform) without recompilation. I understand that Mono has WineLib related bindings and patches for porting applications written in windows to *nix, but I'm not sure if it would need a recompilation. thanks Kannan
Kannan Kalyanaraman wrote: Is it possible to take a .net binary compiled under Windows and take the binary, and run it under Mono(under any *nix platform) without recompilation. I understand that Mono has WineLib related bindings and patches for porting applications written in windows to *nix, but I'm not sure if it would need a recompilation. In theory you could do it, I never tried it, though. I intend to do it as soon as our project hit the next deadline, so I'll have some time to play with new technologies. Kant wrote: Actually she replied back to me "You shouldn't fix the bug. You should kill it"
-
Is it possible to take a .net binary compiled under Windows and take the binary, and run it under Mono(under any *nix platform) without recompilation. I understand that Mono has WineLib related bindings and patches for porting applications written in windows to *nix, but I'm not sure if it would need a recompilation. thanks Kannan
Good question. I know that hey use NUnit as the Unit testing tool on Mono, and it seems to work fine with Mono assemplies and Windows assemblies.
"Je pense, donc je mange." - Rene Descartes 1689 - Just before his mother put his tea on the table. Shameless Plug - Distributed Database Transactions in .NET using COM+
-
Is it possible to take a .net binary compiled under Windows and take the binary, and run it under Mono(under any *nix platform) without recompilation. I understand that Mono has WineLib related bindings and patches for porting applications written in windows to *nix, but I'm not sure if it would need a recompilation. thanks Kannan
I would GUESS that it works for libs but not for .exe i.e. libs are a defined .net format, whilst .exe are windows - they have win32 code to load up .net and complile the .net machine code. but only a guess..
"When the only tool you have is a hammer, a sore thumb you will have."
-
Is it possible to take a .net binary compiled under Windows and take the binary, and run it under Mono(under any *nix platform) without recompilation. I understand that Mono has WineLib related bindings and patches for porting applications written in windows to *nix, but I'm not sure if it would need a recompilation. thanks Kannan
Up until now there is no sure way to port Windows Forms since they make extensive calls to the Win32 API.
-
Up until now there is no sure way to port Windows Forms since they make extensive calls to the Win32 API.
But in the mono, they are having two options for implementing winforms One through the GTK route and the other through wine emulation, they have a patched versino of winelib for this purpose, in this route winforms would work without any code modifications (hopefully without recompilation :~ ) Cheers, Kannan
-
I would GUESS that it works for libs but not for .exe i.e. libs are a defined .net format, whilst .exe are windows - they have win32 code to load up .net and complile the .net machine code. but only a guess..
"When the only tool you have is a hammer, a sore thumb you will have."
Philip Fitzsimons wrote: whilst .exe are windows - they have win32 code to load up .net and complile the .net machine code. Sorta...assuming 100% managed code there are two entry points in an executable. The first is the one that lets Win2K, Win98, and WinME work; it is the standard one used by all programs, it merely makes a call to the .NET runtimes
_CorExeMain
function. The second entry point is the one you define with the Main method and is managed code: WinXP and Win2K3 use this directly, bypassing the first/normal entry point because they are .NET aware. I tried to find a document I had which described the loading process in detail, in particular the loading mechanism used by WinXP+. Unfortunately I could't find it so I had to go from my stale memory. The first entry point is described in Tom Archer's Inside C# first edition, but my second edition is out on loan to a friend so I can't check that one. James "I despise the city and much prefer being where a traffic jam means a line-up at McDonald's" Me when telling a friend why I wouldn't want to live with him -
But in the mono, they are having two options for implementing winforms One through the GTK route and the other through wine emulation, they have a patched versino of winelib for this purpose, in this route winforms would work without any code modifications (hopefully without recompilation :~ ) Cheers, Kannan
If they really make that work in a consistent way it would be a good thing, although I seriously doubt that that these emulations will work without recompilation :~ . Lets wait and see. :zzz: