Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: .NET4
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 2:22am
zajim412

1 solution

Rate this: bad
good
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: 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.
  Permalink  
Comments
zajim at 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
0 Sergey Alexandrovich Kryukov 363
1 OriginalGriff 344
2 George Jonsson 238
3 Shemeemsha RA 148
4 Animesh Datta 130
0 OriginalGriff 6,179
1 Sergey Alexandrovich Kryukov 5,616
2 CPallini 4,770
3 George Jonsson 3,400
4 Gihan Liyanage 2,522


Advertise | Privacy | Mobile
Web03 | 2.8.140916.1 | Last Updated 11 Mar 2012
Copyright © CodeProject, 1999-2014
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