Results 1 to 20 of 20

Thread: Can .NET applications run on MAC?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2002
    Posts
    146

    Can .NET applications run on MAC?

    Sorry, a noob question..

    Can applications made in .NET run on MAC?



    Or do I need a converter/emulator?

  2. #2
    Hyperactive Member
    Join Date
    Sep 2007
    Posts
    360

    Re: Can .NET applications run on MAC?

    Quote Originally Posted by winterslam
    Sorry, a noob question..

    Can applications made in .NET run on MAC?



    Or do I need a converter/emulator?

    They will not work on MAC, you would need an emulator like Virtual PC on the mac that would run Windows

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Can .NET applications run on MAC?

    You would want to look into using Mono. I'm not sure whether applications compiled by VS will run on Mono or not.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4
    Interweb adm/o/distrator Paul M's Avatar
    Join Date
    Nov 2006
    Location
    Australia, Melbourne
    Posts
    2,306

    Re: Can .NET applications run on MAC?

    Quote Originally Posted by jmcilhinney
    You would want to look into using Mono. I'm not sure whether applications compiled by VS will run on Mono or not.
    Yea not everything will work entirely, only when Microsoft decide to stop being stubborn and decide to port the .NET framework to run on Linux will it be 100% fine.

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Can .NET applications run on MAC?

    Quote Originally Posted by Paul M
    Yea not everything will work entirely, only when Microsoft decide to stop being stubborn and decide to port the .NET framework to run on Linux will it be 100% fine.
    There's no stubbornness about it. Microsoft don't want Linux to exist so why would they make it easier for developers to defect from creating Windows software to creating Linux software.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  6. #6
    Interweb adm/o/distrator Paul M's Avatar
    Join Date
    Nov 2006
    Location
    Australia, Melbourne
    Posts
    2,306

    Re: Can .NET applications run on MAC?

    Well i don't think Linux users are going to come running back any time soon.

  7. #7
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Can .NET applications run on MAC?

    Quote Originally Posted by Paul M
    Well i don't think Linux users are going to come running back any time soon.
    That doesn't mean that Microsoft developers should be encouraged to write software for Linux, thereby making Linux a more inviting prospect for current Windows users. Microsoft is all about business, and that just wouldn't make good business sense at this point. We digress though.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Sep 2002
    Posts
    146

    Re: Can .NET applications run on MAC?

    Sorry, unrelated question..

    Is there such a program that runs on both mac and windows without the need for any emulator?

  9. #9
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    Re: Can .NET applications run on MAC?

    Quote Originally Posted by winterslam
    Sorry, unrelated question..

    Is there such a program that runs on both mac and windows without the need for any emulator?
    Java programs, all you need is the program and the JVM on both machines

    There's a JVM for windows and a separate JVM for Mac
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

  10. #10
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: Can .NET applications run on MAC?

    a lot of programs are cross-platform as well, such as videolan, firefox, etc. And there's always WINE which lets you (with fiddling) run windows apps natively (no dx though)
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  11. #11
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Can .NET applications run on MAC?

    Quote Originally Posted by Lord Orwell
    a lot of programs are cross-platform as well, such as videolan, firefox, etc. And there's always WINE which lets you (with fiddling) run windows apps natively (no dx though)
    Applications like Firefox are cross-platform because they have been compiled multiple times for multiple platforms. The difference with Java and .NET/Mono applications is that they don't actually run on the hardware platform itself, but rather inside a virtual machine or the like. The same Java executable will run on any hardware platform that has a JVM installed, and the same .NET executable will run on any platform that has the .NET Framework installed. The same Mono executable will run on any platform that has Mono installed. There's presumably some overlap between .NET and Mono apps but, like I said, I don't really know the details. The only way to avoid compiling multiple times for multiple platforms is to use a virtual machine or the like, i.e. use JIT compilation on each individual platform.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  12. #12
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: Can .NET applications run on MAC?

    I am unfamiliar with Mono, but Java seems to be the best choice for multiple platforms in my opinion, although i have seen some programs with an .exe front-end such as limewire.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  13. #13
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    Re: Can .NET applications run on MAC?

    .exe is simply a file extension, it's not a good indication as to what type of compiled code it is

    For example a java .exe file isn't windows compiled code, it's a bytecode file for the JVM

    A .Net .exe file isn't windows compiled code, it's a misl code file for the .Net JIT

    Both have the .exe extension, but inside they're completely different
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

  14. #14
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: Can .NET applications run on MAC?

    perhaps, but mac doesn't run programs with .exe extensions. Theirs are .app. And the .exe programs you are referring to both have executable code in the beginning of them that is windows only that tells them what to do with the rest of the program.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  15. #15
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    Re: Can .NET applications run on MAC?

    Quote Originally Posted by Lord Orwell
    perhaps, but mac doesn't run programs with .exe extensions. Theirs are .app. And the .exe programs you are referring to both have executable code in the beginning of them that is windows only that tells them what to do with the rest of the program.
    It does if the exe file is java bytecode with the mac jvm installed
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

  16. #16
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: Can .NET applications run on MAC?

    surprise, but i am currently posting this from a mac, with JVM installed. And it won't launch any .exe files that are compiled java, such as limewire or pcworld disks. Please point me towards one that it will run. Even cross-platform apps based on java (again, such as limewire) have two different versions. The only way that i am aware of to run java without a stub loader is to have it load from an html file.

    Another option for cross-platform (depending on your needs) is Flash.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  17. #17
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: Can .NET applications run on MAC?

    MS should port .net to linux and just make it really expensive.

    Seriously though, Mono is virtually useless. The winforms stuff is so buggy (at the moment) that its not worth using. If you are only doing console stuff then you'll be fine but its so slow you may as well write it in C anyway.

    However I will say that console apps DO work really well between windows and mono.

  18. #18
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: Can .NET applications run on MAC?

    Just a note about filename extenstions, in unix/linux (and therefore the latest MacOS) filename extensions are meaningless in most situations. The tradition is to analyse the file for its "magic number" to determine a file's type. If this yields no results then the OS might opt to use the extension to imply a type if it sees fit.
    I don't live here any more.

  19. #19
    Frenzied Member
    Join Date
    Mar 2006
    Location
    Pennsylvania
    Posts
    1,069

    Re: Can .NET applications run on MAC?

    I didn't really read most of the posts, but my friend who is obsessed with macs and computers in general knows how to convert executables to run on the mac. I'll ask him later when he gets back.

  20. #20
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: Can .NET applications run on MAC?

    please share! He's probably running WINE and has all the .dlls anyway. No conversion necessary, but you never know... Mine is set up to run basic windows programs, snes roms, n64 roms, dos games, and c-64 programs. I get bored easily.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

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