Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.NET application to Mac OS X application?

Is there a way to convert .NET applications into Mac OS X applications? I am using Visual Basic 2008, and I want Mac users to use my application as well. Is it possible? If so please reply back with a link or source.

like image 532
lab12 Avatar asked Nov 16 '09 23:11

lab12


People also ask

Can we run .NET application on Mac?

Visual Studio 2022 for Mac offers full support for . NET 7, and C# 10.

Can C# applications run on Mac?

Visual Studio 2022 for Mac includes nearly everything you'll need for .NET 7 development, from responsive C# web UIs in Blazor to event-driven solutions using Azure Functions.


3 Answers

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

The Mono Project 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.

like image 101
Benjamin Pollack Avatar answered Oct 13 '22 01:10

Benjamin Pollack


There is the Mono project.

http://www.mono-project.com/Main_Page

like image 27
Jasarien Avatar answered Oct 12 '22 23:10

Jasarien


You might try Mono. It runs on Windows, Linux and Mac OS.

like image 22
Hannoun Yassir Avatar answered Oct 12 '22 23:10

Hannoun Yassir