Click here to Skip to main content
15,881,870 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi guys. I need your help with the following problem:

I have a desktop application that I created in .NET 4.0 framework using Visual Studio 2010 and MSSQL 2008 server. I want that desktop application to run on MacOS system. Is that even possible? If so, how to do it? Please give me detailed information.

Thank you very much.
Posted

1 solution

The answer depends strongly on what you are attempting to do.

The Mono Project (Ref: http://www.mono-project.com/Main_Page[^]) allows you to run CLR-based applications on OS X. Mono's libraries, however, are not complete replicas of those on the official Microsoft .NET runtimes, and it's quite easy to make software that runs fine on Windows but fails miserably on Mono. The Mono Migration Analyzer, also known as MoMA, is a tool you can run against your .NET assemblies to learn whether they will run on Mono, and, in rough terms, how well.

One place where you're almost certainly going to get hit, given that you are writing a VB.NET application, is the GUI libraries. WinForms requires X windows on Mac, which is not installed by default. While Mono provides some facilities for making native GUIs using .NET, doing so would require rewriting your user interface more or less from scratch--and the main project to do that, Cocoa#, seems quite dead at the moment.

So, basically: if your application is not a GUI application, your chance of being able to run on Mac is probably fairly high. Otherwise, it'd probably be worth putting your efforts elsewhere.
 
Share this answer
 
Comments
zajim 11-Mar-12 9:12am    
My application is Windows Form application. I'll try to do something on this issue, because I need to. Can you explain me in more detail this: "WinForms requires X windows on Mac, which is not installed by default"

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900