开发者

.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 sour开发者_运维百科ce.


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.


There is the Mono project.

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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜