Results 1 to 9 of 9

Thread: windows built exe can be run on linux?

  1. #1

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    windows built exe can be run on linux?

    can a .NET exe that is compiled under windows be run on a linux machine that has MONO on it? how does it work??
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  2. #2
    Addicted Member
    Join Date
    Jun 2003
    Location
    Birmingham, AL
    Posts
    188
    well using wine you could run almost any windows program on linux i believe. For this .Net stuff I believe it has something to do with the pdb file or whatever it is that is created when you compile you applicaiton.

  3. #3

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Originally posted by Tewl
    well using wine you could run almost any windows program on linux i believe. For this .Net stuff I believe it has something to do with the pdb file or whatever it is that is created when you compile you applicaiton.
    hmm so you have to have the pdb and the exe together for a linux user to be able to run it? (not using wine) or just the pdb? or you need the whole code?
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  4. #4
    Addicted Member
    Join Date
    Aug 2003
    Posts
    153
    Doesn't Mono have a different System.Drawing equivilant?

  5. #5
    Hyperactive Member VBD's Avatar
    Join Date
    Apr 2001
    Location
    The Place Above The Place Below Heavin
    Posts
    278

    I don't believe its the PDB

    I think thats for debugging. I've deleted it before and got it to run under windows. Mono should run the exe, but you need to do some weird stuff to get Windows.Forms and Drawing to work, which aren't fulley implemented. MS also released a .NET Framework for Linux. I don't think either will get your Drawing and Forms to work 100%
    Hello

  6. #6

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    Re: I don't believe its the PDB

    Originally posted by VBD
    I think thats for debugging. I've deleted it before and got it to run under windows. Mono should run the exe, but you need to do some weird stuff to get Windows.Forms and Drawing to work, which aren't fulley implemented. MS also released a .NET Framework for Linux. I don't think either will get your Drawing and Forms to work 100%
    useless microsoft
    hmm never heard of ms releasing a framework for linux, got any links to that?
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  7. #7
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489
    Don't they have a cream for mono?

  8. #8
    Fanatic Member Redth's Avatar
    Join Date
    May 2001
    Location
    Ontario, Canada
    Posts
    551
    yes, a .NET exe can be compiled and run on linux using mono... there is one catch however... like was mentioned before, mono doesn't natively support the Windows.Forms namespaces.... There are some implementations out there for them, GTK# for gnome seems to be the most popular... Even then, you may not be able to use everything from the namespaces...

    but, if you want a simple test, create a console application... compile it on your windows machine, and then try running it under mono on your linux machine. it works! this works simply because the exe is only in MSIL code, not a normal win32 binary...

    so, in short, yes, you can compile on windows and run on linux...

  9. #9
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    http://www.vbforums.com/showthread.p...&highlight=gtk

    My tutorial on using GTK# in visual studio and a sample code that will compile on both windows and linux

    Includes screenshot
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width