.NET应用程序的Mac OS X应用程序? [英] .NET application to Mac OS X application?

查看:219
本文介绍了.NET应用程序的Mac OS X应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法,以.NET应用程序转换为Mac OS X的应用程序?我使用的Visual Basic 2008年,我想Mac用户使用我的应用程序也是如此。可能吗?如果是的话请回信一个链接或来源。

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.

推荐答案

答案很大程度上取决于你正在试图做的事。

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

借助 Mono项目允许您在OS X Mono的库运行基于CLR的应用程序,但是,是不是完整的副本那些在微软官方.NET运行时,这是很容易使在Windows上运行正常,但在Mono失败草草收场软件。该单迁移分析器,也被称为的纽约现代艺术博物馆,是你可以对你的.NET程序集运行,以了解他们是否将运行在单声道的工具,并且在恶劣的条件,如何。

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.

一个地方,你几乎肯定会得到打,因为你正在编写一个应用程序VB.NET,是GUI库。的WinForms需要在Mac上,这是不是默认安装的X窗口。虽然单提供了一些设施,使得使用.NET原生图形用户界面,这样做需要重新编写用户界面从头或多或少 - 与主体工程要做到这一点,的可可#,似乎很死的那一刻。

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.

所以,基本上是:如果你的应用是不是一个GUI应用程序,你是能够在Mac上运行的机会很可能是相当高的。否则,它很可能是值得投入的努力在其他地方。

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.

这篇关于.NET应用程序的Mac OS X应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆