Click here to Skip to main content
13,046,726 members (60,855 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Can I run a .NET software in MACOSX
Posted 7-Jan-13 10:30am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Yes. You just install bootcamp, then install windows, then install .NET, then install your program./

Otherwise, it's a windows program so, no.
I would not call it Mac OS X. :-)
Mono is the solution, I answered.
Member 10614004 25-Mar-15 3:25am
I tried mono.
But it error on some event. :(
Christian Graus 7-Jan-13 17:35pm
Well, perhaps, if you're lucky.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

You can run .NET application without recompilation on Mac OS X under Mono:[^],[^].

However, those application have to be compatible. Mono supports all of the BCL and some of other non-standard FCL, notably System.Windows.Forms, ADO.NET, and more.
Please see:[^],[^].

I must also note that, in contrast to Linux, Mac OS X is extremely hostile to the "foreign" GUI applications. They work, but look ugly. If you confine yourself to console applications, it's not a problem, but Forms look like something outlaw, even though they work. One major reason for that is the totally different concept of the main menu. You can also develop "native" Mac OS X UI using Mono and the library MonobjC which wrapes, Objective-C, Cocoa, etc, but I don't think you are interested in that. Anyway, this is a possibility.

Christian Graus 7-Jan-13 17:35pm
Yeah, I know about Mono. I just thought that it's not really worth the effort to try to make it work - how do you know that it's all going to work ? How do you know at what point it will fail ?
It really depends. How do I know? Because many of my applications work on all my Linux systems, and because I've done a contract for porting .NET to the multi-platform solution. It's so good that I can develop applications which can work on a number of platforms. And I develop it on Windows totally, just test, first on Mono for Windows, later on other platforms. I really works.

But one needs to keep to the standard things, mostly BCL and keep the use of other parts FCL to a reasonably basic subset (which only improves the quality of the software; highly decorated "cool" applications are rarely robust). Unnatural hacking-style show-off applications will fail to work.

Christian Graus 7-Jan-13 17:45pm
Fair enough. It seems like a dangerous path to me, but I'm sure with enough testing, it can be proven to work.
Well, to me, it is quite proven, but yes, with a number of limitations; no wonder.
Yaseer Arafat 7-Jan-13 18:15pm
Yaseer Arafat 7-Jan-13 18:18pm
I have downoaded & mono-2.10.9.

I have developed a software with vs 2012.How can I convert it for MacOS
I told you: just write software, in a compatible manner, on Windows. Use compatible target .NET version (3.5 worked very well, 4 might work). If you do it accurately, it will work on Mac OS X without recompilation. Just run it as is with the following command line: mono my_application.exe.

Good luck,
Yaseer Arafat 8-Jan-13 17:36pm
Thanks.It works For me.
Hope so.

You are welcome.
Good luck, call again.

Member 10614004 25-Mar-15 3:29am
:( It work for me.
But error on some event.
It breakdown when I try to fill DataGridView from database.
Hope you can fix it... :-)
Good luck,

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 7 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100