使用 Mono 将 C# .NET 应用程序移植到 OS X? [英] Using Mono to port a C# .NET app to OS X?

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

问题描述

好的,伙计们,我正在编写一个我想要跨平台的应用程序.直到最近,我一直在尝试使用 C# 在 Silverlight 中执行此操作,因为它也可以在 OS X 上运行,但由于我对 C# 相当生疏,除了是 Silverlight 的新手之外,我一直头疼又头疼.其中大部分源于旨在在浏览器中运行的应用程序所带来的限制,从我的开发服务器运行与直接从 file://运行时它的运行方式不同等问题.

Alrighty guys, I'm writing an application that I want to be cross-platform. Up until recently I've been trying to do this in Silverlight with C# because it also runs on OS X, but with me being fairly rusty with C# in addition to being new to Silverlight I've run into headache after headache. Most of this stems from the restrictions that come along with an application that's intended to run in a browser, issues with it running differently when running from my development sever vs directly from a file://, etc.

我宁愿完全放弃整个 OS X 支持的想法,也不愿为 OS X 完全重写应用程序,尤其是因为我完全没有编写它的经验.我希望能够使用 Visual Studio for Windows 在 C# .NET 中编写一个常规应用程序,然后使用 Mono 轻松将其移植到 OS X.

I'd rather completely abandon the whole OS X support idea than have to completely rewrite the app for OS X, especially since I have utterly NO experience writing for it. What I'm hoping to be able to do is write a regular app in C# .NET with Visual Studio for Windows and then easily port it to OS X with Mono.

使用 Mono 将 .NET 应用程序移植到 OS X 有多难?我的应用程序相当简单,表单或其他任何东西都没有什么特别之处,所以我不得不假设 Mono 的 WinForms 实现支持它.

How difficult is it to bring a .NET app over to OS X with Mono? My app is fairly straightforward, there's nothing exotic going on with the forms or anything, so I'd have to assume that it'd be supported in Mono's WinForms implementation.

有没有关于如何使用 Mono 移植应用程序的好资源?或者,也许,我错过了整点,它只是让您在 OS X 上运行 .NET 应用程序,而我不需要为移植而烦恼?

请原谅我对这个问题的完全无知,我是在 10 分钟前才开始考虑走这条路线,因为在 Silverlight 中遇到了另一个令人讨厌的限制.

Forgive my utter ignorance on the subject, I only started considering going this route like 10 minutes ago after running into yet another annoying restriction in Silverlight.

我将是第一个承认我对这个问题一无所知,所以要温柔.. :)

I'll be the first to admit that I don't know my head from my ass about this subject, so be gentle.. :)

推荐答案

Appart from MoMa 如您可能对 MonoMac 感兴趣的其他答案中所述.随着 MonoTouch(为 iPhone 编写 c#)的成功,现在还有一个名为 MonoMac 的项目,用于在后台使用 .net/mono 为 OSX 创建本机 UI.你可能会感兴趣 http://www.mono-project.com/MonoMac,关于文章Miguel de Icaza 的博客:http://tirania.org/blog/archive/2010/Apr-19.html

Appart from MoMa as mentioned in the other answers you might be interested in MonoMac. With the success of MonoTouch (writing c# for iPhone), there is now also a project called MonoMac to create native UI's for OSX while using .net/mono in the background. Might be interesting for you http://www.mono-project.com/MonoMac, article on Miguel de Icaza's blog: http://tirania.org/blog/archive/2010/Apr-19.html

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

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