Click here to Skip to main content
13,253,507 members (56,920 online)
Rate this:
Please Sign up or sign in to 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 11-Mar-12 3:22am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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

The Mono Project (Ref:[^]) 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.
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.171114.1 | Last Updated 11 Mar 2012
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