MonoDevelop编译选项 [英] MonoDevelop compiling options

查看:97
本文介绍了MonoDevelop编译选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.

当我在项目上单击鼠标右键后单击编译"时,总是得到一个exe文件. (这在测试时确实可以按编程方式工作).这一切都很好,而且很好,但是作为Mac用户,我真的可以使用一种方法来编译到Mac .app文件.

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.

推荐答案

创建.exe文件很重要.请参见 Mono手册:

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

这时,您必须在命令行中使用Mono,Mono其他端口上可用的通常命令集才可用.

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.

要构建应用程序,您可以使用"gmcs",然后运行即可使用mono.

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 $

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

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

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

mono myprogram.exe

这篇关于MonoDevelop编译选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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