MonoDevelop 编译选项

发布于 2024-09-30 03:40:01 字数 175 浏览 1 评论 0原文

我今天第一次在 MonoDevelop 中开发应用程序,我只需要知道如何为 Mac 而不是 Windows 编译我的项目。

当我右键单击我的项目后单击“编译”时,我总是得到一个 exe 文件。 (经过测试,它确实按程序工作)这一切都很好,但作为一个 Mac 用户,我真的可以使用一种方法来编译为 Mac .app 文件。

I'm developing applications in MonoDevelop for the first time today, and I just need to know how to compile my projects for mac, NOT windows.

When I click "Compile" after right clicking on my project, I always get an exe file. (Which, when tested, DOES work as programmed) That's all fine, and good, but being a mac user, I could really use a way to compile to Mac .app files.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

趁微风不噪 2024-10-07 03:40:01

创建 .exe 文件就是重点。请参阅 Mono 手册

此时,您必须从命令行使用 Mono,Mono 其他端口上可用的常用命令集都可用。

要构建应用程序,您可以使用“gmcs”,然后您可以使用 mono 来运行。

从终端 shell 中,您可以尝试一下:

$ vi hello.cs
$ gcs hello.cs
$单声道hello.exe
你好,世界
$

在 MacOS X 上运行应用程序与 Linux 系统非常相似,从终端运行:

mono myprogram.exe

Creating .exe files is the whole point. See the Mono manual:

At this point, you must use Mono from the command line, the usual set of commands that are available on other ports of Mono are available.

To build applications you can use "gmcs", to run then you can use mono.

From a Terminal shell, you can try it out:

$ vi hello.cs
$ gcs hello.cs
$ mono hello.exe
Hello, World
$

and

Running applications on MacOS X is very similar to linux systems, from the terminal:

mono myprogram.exe

北笙凉宸 2024-10-07 03:40:01

要从 GTK# 或 System.Windows.Forms 应用程序制作应用程序包,请按照以下说明操作: http://mjhutchinson.com/journal/2010/01/24/creating_mac_app_bundle_for_gtk_app

如果您有 MonoMac 项目,MD 将自动创建应用程序包。

To make an app bundle from a GTK# or System.Windows.Forms app, follow these instructions: http://mjhutchinson.com/journal/2010/01/24/creating_mac_app_bundle_for_gtk_app

If you have a MonoMac project, MD will create the app bundle automatically.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文