Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Windows to *nix with Mono

Windows to *nix with Mono

Scheduled Pinned Locked Moved C#
csharp
8 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kannan Kalyanaraman
    wrote on last edited by
    #1

    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

    D G P A 4 Replies Last reply
    0
    • K Kannan Kalyanaraman

      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

      D Offline
      D Offline
      Daniel Turini
      wrote on last edited by
      #2

      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"

      1 Reply Last reply
      0
      • K Kannan Kalyanaraman

        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

        G Offline
        G Offline
        Giles
        wrote on last edited by
        #3

        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+

        1 Reply Last reply
        0
        • K Kannan Kalyanaraman

          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

          P Offline
          P Offline
          Philip Fitzsimons
          wrote on last edited by
          #4

          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."

          J 1 Reply Last reply
          0
          • K Kannan Kalyanaraman

            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

            A Offline
            A Offline
            apferreira
            wrote on last edited by
            #5

            Up until now there is no sure way to port Windows Forms since they make extensive calls to the Win32 API.

            K 1 Reply Last reply
            0
            • A apferreira

              Up until now there is no sure way to port Windows Forms since they make extensive calls to the Win32 API.

              K Offline
              K Offline
              Kannan Kalyanaraman
              wrote on last edited by
              #6

              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

              A 1 Reply Last reply
              0
              • P Philip Fitzsimons

                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."

                J Offline
                J Offline
                James T Johnson
                wrote on last edited by
                #7

                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

                1 Reply Last reply
                0
                • K Kannan Kalyanaraman

                  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

                  A Offline
                  A Offline
                  apferreira
                  wrote on last edited by
                  #8

                  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:

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups