在MAC操作系统(MACBOOK)上运行.NET应用程序 [英] Run .NET application on MAC operating system (MACBOOK)

查看:990
本文介绍了在MAC操作系统(MACBOOK)上运行.NET应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好对于以下问题,我需要您的帮助:

我有一个使用Visual Studio 2010和MSSQL 2008服务器在.NET 4.0框架中创建的桌面应用程序.我希望该桌面应用程序可以在MacOS系统上运行.那有可能吗?如果是这样,该怎么办?请给我详细的信息.

非常感谢.

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.

推荐答案

答案很大程度上取决于您要尝试执行的操作.

Mono项目(Ref: http://www.mono-project.com/Main_Page [
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.


这篇关于在MAC操作系统(MACBOOK)上运行.NET应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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