建设和OS X的终端上运行的MonoDevelop解决方案 [英] Building and running Monodevelop solution in OS X Terminal

查看:675
本文介绍了建设和OS X的终端上运行的MonoDevelop解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想建立并运行OS X的终端一个MonoDevelop的解决方案。 什么是适当的工具/命令来做到这一点?

I'd like to build and run a Monodevelop solution from the OS X Terminal. What are the appropriate tools/commands to do this?

我试图运行 mdtools建立从包含目录 MySolution.sln 。这将导致 -bash:mdtools:命令未找到。我在哪里可以下载并安装 mdtools ? (如果这是正确的方式去)。

I tried running mdtools build from the directory containing MySolution.sln. This results in -bash: mdtools: command not found. Where can I download and install mdtools? (if this is the right way to go).

我建立从IDE的解决方案。然后我试图从斌/调试 mySolution.exe 运行。这导致了错误信息 -bash:mySolution.exe:命令未找到(即使 LS 显示它的存在)

I built the solution from the IDE. Then I tried to run it from bin/Debug with mySolution.exe. This resulted in the error message -bash: mySolution.exe: command not found (even though ls shows it exists).

推荐答案

在Mac上, mdtool 不在PATH,但可以在MD应用程序包内找到,例如:

On a Mac, mdtool is not in the PATH, but can be found inside the MD app bundle, for example

/Applications/MonoDevelop.app/Contents/MacOS/mdtool build MySolution.sln

另外,您可以尝试 xbuild ,其安装为单色的一部分,并且是在路径中。这是的MSBuild的实现。不幸的是,还不能处理所有的 mdtool 可以处理自定义的项目类型。

Alternatively you could try xbuild, which is installed as part of Mono, and is in PATH. This is an implementation of MSBuild. Unfortunately it can't yet handle all the custom project types that mdtool can handle.

xbuild MySolution.sln

这篇关于建设和OS X的终端上运行的MonoDevelop解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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